Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!


Click here to return to the 'Or an Applescript that launches on login or runs in the background' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Or an Applescript that launches on login or runs in the background
Authored by: designr on Fri, May 18 2007 at 10:05AM PDT
property last_ip : ""
set my_IP to (do shell script "/sbin/ifconfig en0 | head -3 | grep 'inet ' | cut -d' ' -f 2") as string
if my_IP ≠ last_ip then
	set last_ip to my_IP
	if my_IP contains "192.168.0." then
		beep
		delay 2
		beep
	end if
else
	beep
end if


[ Reply to This | # ]