Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'An AppleScript to do IP-based mounting and indexing' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An AppleScript to do IP-based mounting and indexing
Authored by: Stef@nK on Feb 17, '07 02:41:20AM
Hi,
to detect an external IP in AppleScript, you can also use this one-liner:

set ip_external to text 2 thru -1 of ¬
		(do shell script "curl http://checkip.dyndns.org | cut -f 2 -d ':' | cut -f 1 -d '<'")


[ Reply to This | # ]