Send External IP to cellphone..

Lets say I, from my cellphone, send, in a text message to my email, “get ip”.

I would like the script, to parse that message, get the external IP and automatically reply with the external IP in the body with the subject as “IP”.

Granted, this seems real easy to do, but this script will help be the building block of the future scripts I plan to take part in.

Model: MacBook (Intel Core Duo)
AppleScript: 2.1.1
Browser: Firefox 2.0.0.9
Operating System: Mac OS X (10.5)

Hi Chris,

you can get the external IP address with this:


try
	set ip_external to do shell script "curl http://checkip.dyndns.org | awk '/: / {print $6}' | cut -f 1 -d '<' "
on error
	display dialog "No internet connection" buttons {"OK"} default button 1
end try

To help with your script there is more detailled information needed about the syntax and the applications, you want to involve