Re: Apple Mail Date Remote & Local and IP Lookup
Re: Apple Mail Date Remote & Local and IP Lookup
- Subject: Re: Apple Mail Date Remote & Local and IP Lookup
- From: Lists <email@hidden>
- Date: Fri, 21 Sep 2012 12:37:40 -0700
I use lynx to get it from my router. You will need to modify this script for your router - You'll need the address of the router page with your current IP and you will need to write a new grep line.
And it is always available even if the internet isn't. ;-)
set x to month of (current date) as number set timeStamp to (x as text) & "/" & day of (current date) & "/" & ¬ text -4 thru -1 of (year of (current date) as text) & tab & time string of (current date) set routerIP to do shell script "/usr/local/bin/lynx -dump " & quoted form of theurl & " | grep -o '[0-9]*\\.[0-9]*\\.[0-9]*\\.[0-9]*' " set IPinfo to routerIP & tab & timeStamp & return set thisref to open for access file ((path to desktop folder as text) & "ips") with write permission write IPinfo to thisref starting at eof close access thisref display dialog IPinfo buttons {"OK"} default button 1 giving up after 2
J
On Sep 21, 2012, at 11:51 AM, Christopher Stone < email@hidden> wrote: Question:
Does anyone know of a better IP lookup service?
Thanks.
-- Chris
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden