Re: Scripting Airport Connection
Re: Scripting Airport Connection
- Subject: Re: Scripting Airport Connection
- From: Martin Orpen <email@hidden>
- Date: Mon, 16 Feb 2004 10:31:08 +0000
on 16/2/04 4:13 am, Gary Lists at email@hidden wrote:
>
Robert Short wrote [2/15/04 5:50 PM]:
>
>
> Anyone have some simple ways to toggle airport on and off via
>
> Applescript?
>
>
>
> Thanks for any response. I am really struggling on this one and it
>
> seems easy!
>
>
Check the Airport dictionary (recently I posted some of that dictionary
>
here) which allows for access to various properties of the current
>
connection, including, IIRC, a status toggle.
>
>
It's all there in the dictionary.
Where's this "Airport dictionary" then?
In OS 9 you could use "Airport Scripting":
tell application "AirPort Scripting"
set power of card 1 to false
quit
end tell
There's an "Internet Connect" dictionary with some rudimentary Airport stuff
- and there's always the UI:
tell application "System Events"
tell process "Internet Connect"
if exists button "Turn Airport Off" of window "Airport" then
click button "Turn Airport Off" of window "Airport"
else
click button "Turn Airport On" of window "Airport"
end if
end tell
end tell
(not pretty - but you can write it and run it in the time it takes to find
the Airport stuff Internet Connect's dictionary)
A proper "Airport" (including the base station) dictionary would be most
welcome.
For example, I'd like to be able to switch ISPs and connection numbers based
on time of day or time of week.
Is this possible using existing terms of *any* dictionary?
Or will it require the mother of all UI scripts?
--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com
_______________________________________________
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.