Re: [OS X] Scripting Internet Connect
Re: [OS X] Scripting Internet Connect
- Subject: Re: [OS X] Scripting Internet Connect
- From: "J.B. Stewart" <email@hidden>
- Date: Mon, 21 Jan 2002 07:49:35 -0500
On Monday, January 21, 2002, at 02:36 , Donald Hall wrote:
>
Hi all,
>
>
"Internet Connect" seems to have a full dictionary, but I don't seem to
>
have much success with any attempts to script it. The following script
>
gives an error, "--> The variable s is not defined."
>
>
tell application "Internet Connect"
>
set s to status of current configuration
>
s
>
end tell
>
>
However, 'set s to name of current configuration' gives the correct
>
result ("Internal Modem"). It looks like 'status' is not implemented.
>
>
I simply want to see if there is a live connection, which I could easily
>
do in OS 9 by scripting Remote Access. Has anyone done this?
>
>
Thanks for any advice,
>
>
Don
Internet Connect returns "status" as a record. try this -
tell application "Internet Connect"
set s to state of (status of current configuration)
s
end tell
John