Scripting Airport?
Scripting Airport?
- Subject: Scripting Airport?
- From: Charles Arthur <email@hidden>
- Date: Sun, 7 Oct 2001 21:35:03 +0100
I'm trying (in 9.2.1) to find out whether the modem of the base station is
connected.
It would seem trivial but isn't.
--
tell application "AirPort Scripting"
set thestatus to PPPStatus 1 --of "Apple Base Station 1b63be"
quit
end tell
thestatus
-->{class:PPPStatus, status:Connected, protocol:IPCP Up, method:Modem,
connect time:1060, remaining time:32703524, phone number:"0845-666-2225",
bytes in:141056533, bytes out:148002469, packets in:2134, packets out:2255,
errors in:0, errors out:0}
So to find out whether the modem is connected, you would think it would be
item 2 of thestatus, right?
--> Can't get item 2 of ....
According to the Airport dictionary, PPPStatus is a class, and these other
things are properties of it. But unlike say, the Finder, I can't get these
properties out, either by name or item or any other means.
So the clue is...?
Charles
http://www.ukclimbing.com : 1,000+ British crags, 350+ British climbing walls
- searchable by distance rock type, etc, with 5-day weather forecasts for
every one - plus maps, articles, news, and the New Routes database. There's
even a cool shop attached...