Re: Applescript, Leopard, and dialup modems
Re: Applescript, Leopard, and dialup modems
- Subject: Re: Applescript, Leopard, and dialup modems
- From: Donald Hall <email@hidden>
- Date: Wed, 20 Aug 2008 00:04:27 -0600
Brian,
Thanks for the reply and for supplying your script.
No, I'm not using your 'Dialup Mail Checker'. I'm
dealing with one of my own making.
I scanned your listing and it appears the
following two handlers do things I'm interested
in:
---------
on CheckOnLine()
tell application "Network Utility"
-- Are we already online? Should be 8 if yes.
try
set temp to ´class RAsbª
of ´class RSstª of ´class ccnfª
on error
set temp to 1
end try
end tell
return temp
end CheckOnLine
-------------
on DisconnectInternetConnect() -- We're gonna disconnect!
tell application "Finder"
if not (exists process "Internet Connect") then
tell application "Network Utility"
activate
my SendWindowToDock()
end tell
end if
tell application "Network Utility"
´event netcdconª
end tell
end tell
end DisconnectInternetConnect
---------------
Do you have any information on the various
classes and event codes mentioned in these
handlers? Network Utility does not appear to have
an AppleScript dictionary. Where did you get the
codes from?
Thanks again,
Don
--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
email@hidden
http://www.appsandmore.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden