Remote Access status
Remote Access status
- Subject: Remote Access status
- From: Matt <email@hidden>
- Date: Sat, 9 Feb 2002 14:45:54 -0500 (EST)
(Mac OS 9.1)
I am working on a script to help keep our DSL connection alive (beyond the
simple "startup on launch" provided by our current PPPoE client).
However, part of this script depends on getting the status of the
connection.
I originally was communicating right to the client using its supposed
dictionary (NTS PPP Dialer with required "Connect", "Disconnect" and
"ConnectState") which does not seem to work at all, so instead I switched
to communicating with "Network Setup Scripting" in the following way:
if activity of (status of Remote Access configuration "EnterNet RA")
is not idle then
...
The event log shows:
...
tell application "Network Setup Scripting"
get activity of status of Remote Access configuration "EnterNet Default"
--> Network Setup Scripting got an error: Can't make some data
into the expected type.
I tried outside of the conditional, and casting "as string" but just can't
seem to access or get a handle on thhis constant and get:
Can't make <<class RAsb>> of <<class otkz>> of <<class otdb>> "EnterNet
Default" of application "Network Setup Scripting" into a string.
Any ideas? WHen this PPPoE client is running, the RA control strip shows
its status and time connected, so it should be simple...and the above is
literally right out of "AppleScript In A Nutshell".
Thanks,
-Matt
Matthew Kozak
Rutgers University-Camden
email@hidden
**************************************************************************
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety." -Ben Franklin
**************************************************************************
_______________________________________________
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.