Internet Connect Script
Internet Connect Script
- Subject: Internet Connect Script
- From: Jim Lindholm <email@hidden>
- Date: Sat, 8 May 2004 16:18:20 -0700
I have a script that has worked fine until I started using AirPort
regularly and as long as the Connection selected in Internet Connect
says "SaberNet (SF)", it still works fine. Problem is... if Connection
in Internet Connect is any of the other choices ie: "AirPort" (which is
set up for wireless connection) or "SaberNet (Sacto)", even tho I have
told Internet Connect to use the "SaberNet (SF)" Connection, it appears
to ignore this and tries to connect with the one that is selected in
Internet Connect. Since all but the "AirPort" Connection are PPP
setting, generally a connection is made. If "AirPort" happens to be
Configuration, then the script an AS -1718 error (Reply has not yet
arrived).
Basically... Configurations are not switching within Internet Connect.
Anyone see anything wrong with the script or have any suggestions on
what is needed to make ti work properly. Thanks... Jim
--INTERNET CONNECTION
tell application "Internet Connect"
get state of status of PPP configuration "SaberNet (SF)" --check
status of default connection
if (result = 4) then --connected
disconnect PPP configuration "SaberNet (SF)"
else
-- try
with timeout of 45 seconds --try to connect for 45 seconds, otherwise
exit with error
connect PPP configuration "SaberNet (SF)"
repeat until (result !A 0)
get state of status of PPP configuration "SaberNet (SF)" --check
status of default connection
if (result = 4) then
exit repeat
end if
delay 1
end repeat
end timeout
end if
end tell
_______________________________________________
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.