Re: Get IP Address
Re: Get IP Address
- Subject: Re: Get IP Address
- From: Paul Skinner <email@hidden>
- Date: Tue, 21 Oct 2003 22:38:57 -0400
This errors for me, but it's a nice solution. How about ...
set AppleScript's text item delimiters to ":"
word 1 of text item 2 of (do shell script "curl
http://checkip.dyndns.org/")
PS
On Tuesday, October 21, 2003, at 07:51 PM, Conaire Mullins wrote:
>
I use this to get my public IP address from behind a router
>
>
set ip_external to characters 1 thru -2 of (words 31 thru 32 of ,
>
((do shell script "curl http://checkip.dyndns.org/") as international
>
text) as text) as text
>
display dialog "Public IP" & ip_external
>
>
>
-----
>
Conaire Mullins
_______________________________________________
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.