Re: Get IP Address
Re: Get IP Address
- Subject: Re: Get IP Address
- From: Ian Ferguson <email@hidden>
- Date: Mon, 20 Oct 2003 17:30:51 -0400
You can try this:
set TheResult to (do shell script "curl -f
http://checkip.dyndns.org")
set Olddelim to AppleScript's text item delimiters
set AppleScript's text item delimiters to "Current IP Address: "
set LongIP to item 2 of every text item of TheResult
set AppleScript's text item delimiters to return
set MyIP to item 1 of (every text item of LongIP)
display dialog "Your IP is : " default answer (MyIP) with icon note
set AppleScript's text item delimiters to Olddelim
On Oct 20, 2003, at 4:59 PM, Ben Gummer wrote:
Hi all,
Does anyone know how to find a users IP address through Applescript?
Any help would be great
Thanks,
Ben Gummer
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.