• 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
Checking ConnectState without opening application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Checking ConnectState without opening application


  • Subject: Checking ConnectState without opening application
  • From: "Thierry Lavallee [8P-Design]" <email@hidden>
  • Date: Thu, 11 Apr 2002 12:59:21 -0400

With Sympatico HSE (our ISP), we use an application called 'Gestionnaire
d'Acchs' (most probably Access manager in english) to make the ADSL
connection.

I would like, without launching the application "Gestionnare d'acchs", to
check if ConnectState  2 before branching. But the following script (below)
unfortunately opens the application. Could anyone guide how I could check
the internet connection status without opening the application? Thanks. BTW,
this script will end up in a FBA to monitor it regularly... But this should
not have incidence.

Awaiting your reply!: )
-- Thierry

BEGIN ------------------------------------------

tell application "Gestionnare d'acchs"
if (ConnectState)  2 then
tell application "Connect"
activate
end tell
end if
end tell

END -------------------------------------------

This is the Gestionnaire d'acchs dictionnary:
-----------------------------------------------
NTS PPP Dialer Suite: Events specific to the NTS PPP Dialer application

Connect: Attempt to start a PPP connection.
Connect
[Using Configuration string]

ConnectState: Returns current PPP connection state
ConnectState
Result: small integer -- 0 = not connected, 1 = connect or disconnect
in progress, 2 = connected

Disconnect: Terminate any current PPP connection.
Disconnect
-----------------------------------------------
_______________________________________________
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.

  • Prev by Date: Fwd: Obtaining the name of a "dropped" folder
  • Next by Date: Re: InDesign Scripting
  • Previous by thread: Re: ACGI & OSX - pages greater then 32k???
  • Next by thread: Path to ~/
  • Index(es):
    • Date
    • Thread