• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Trouble scripting airport connections
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Indesign CS asset problem
  • Next by Date: Droplet that crash (2)
  • Previous by thread: Re: Indesign CS asset problem
  • Next by thread: Droplet that crash (2)
  • Index(es):
    • Date
    • Thread