Re: Scripting in vain - please help :(
Re: Scripting in vain - please help :(
- Subject: Re: Scripting in vain - please help :(
- From: Bryan Harris <email@hidden>
- Date: Sat, 03 Mar 2001 20:55:34 -0600
>
* A script that starts to run ONLY once the computer has automatically
>
reconnected onto the internet. The script then sends a copy of the
computers
>
new IP address to an email address, which will be my WAP email (ie. my
mobile
>
phone)
Are you using Entourage?
Not sure how to make it run once the computer has reconnected, but here's
the script to insert the IP address into the current message... Let me know
if you need help building and sending a message via Entourage or OE. Sorry,
can't help you with any others..
(I didn9t write this, so I can9t take credit. Can9t remember where I got
it...)
- B
with timeout of 2 seconds
tell application "Network Setup Scripting"
try
open database
set tcpConfig to name of item 1 of every TCPIP v4 configuration
whose active is true
set ipAdd to IP address of TCPIP v4 configuration tcpConfig
end try
close database
end tell
end timeout
tell application "Microsoft Entourage"
try
set selection to ipAdd
end try
end tell