• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [OS X] Scripting Internet Connect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: [OS X] Scripting Internet Connect
      • From: Timothy Bates <email@hidden>
References: 
 >[OS X] Scripting Internet Connect (From: Donald Hall <email@hidden>)

  • Prev by Date: Re: solutions to scripting addition terminology confilicts (i.e. the osax namespace problem)
  • Next by Date: Re: solutions to scripting addition terminology conflicts (i.e. the osax namespace problem)
  • Previous by thread: [OS X] Scripting Internet Connect
  • Next by thread: Re: [OS X] Scripting Internet Connect
  • Index(es):
    • Date
    • Thread