Trouble scripting airport connections
Trouble scripting airport connections
- Subject: Trouble scripting airport connections
- From: Robert Short <email@hidden>
- Date: Thu, 12 Feb 2004 05:10:55 -0500
I need to be able to toggle airport connections on and off in a lab
setting. I know I could show the students how to do it via the toolbar
at the top, but then they tend to leave it off and when the next group
comes in they think something is wrong with the computer.
Something along the lines of
tell application "System Preferences"
activate
end tell
tell application "System Events"
tell process "System Preferences"
click menu item "Network" of menu "View" of menu bar 1
delay 3
tell window "Network"
tell menu item "location 1" of menu "Location"
click "Internet"
delay some time period
click button "Start"
delay some time period
end tell
end tell
end tell
end tell
I don't know why, but finding a way to script airport seems tricky. I
have tried going through simply scripting a different location via the
apple menu and also through the network pane in system preferences but
keep getting error messages. It is almost as if something isn't
installed to allow system events on my machine.
I am new to applescripting and it is important to note that I am
probably over complicating something simple!
Thanks for the great list.
Rob Short
Richmond,
VA
_______________________________________________
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.