Re: NTS EnterNet Connection Script
Re: NTS EnterNet Connection Script
- Subject: Re: NTS EnterNet Connection Script
- From: Cornwall <email@hidden>
- Date: Mon, 17 Dec 2001 16:56:04 -0800
On Monday, December 17, 2001, at 08:31 AM, George Reiff wrote:
Im pretty new to Apple Script and having some trouble. Can anyone help
me with writing a script re: my EnterNet DSL connection app connecting
to my isp. I can write the script to open EnterNet app but can't seem
to write the proper connection commands. It connects via PPP, thru
ethernet as it is for DSL. Any help would be appreciated.
Here is one I once used to check email.
tell application "EnterNet 300"
activate
set isItConnected to ConnectState
end tell
if isItConnected is 0 then
tell application "EnterNet 300" to Connect
else
tell application "EnterNet 300" to quit
try
tell application "Eudora"
activate
connect
end tell
end try
quit
end if
repeat 20 times
tell application "EnterNet 300"
ConnectState returning isConnected
end tell
if isConnected is 2 then
tell application "EnterNet 300" to quit
try
tell application "Eudora"
activate
connect
end tell
on error
error number -128
end try
exit repeat
quit
else
delay 2
end if
end repeat
Corny