|Oct 19, 2010, 06:17 PM||#1|
Need help with applesript for airport
I know this sounds trivial, but I could not find a reasonable answer online. How can I create an applescript to toggle the Airport Wifi connection. I found everything from shell scripts to automator "Watch Me" actions, but nothing works. Please help me with this.
White MacBook, 2.13 GHz, 2 GB RAM, 160 GB HD
Dell w/ 4GB RAM, AMD Athlon
iPod Touch 4G (or 5G :P), 32GB, iOS 5.1, awaiting jailbreak.
|Oct 19, 2010, 10:07 PM||#2|
I don't know a way to do this entirely in AppleScript.
However, the 'networksetup' command can turn Airport (i.e. WiFi) off and on, and also return its current on/off state. So based on that, it's definitely possible to make a shell script that can toggle Airport.
But you already said you've seen shell scripts and they didn't work. So post the URL of a shell script that didn't work, and I can take a look.
You should also describe what you mean by "didn't work". "Didn't work" provides nothing useful, because there are millions of ways something can not work. If you were diagnosing an automobile problem, "didn't work" could mean anything from "the key won't fit in the ignition" to "the engine exploded".
Describe what you expected to happen, then describe what actually did happen, including the exact text of any error messages.
Also identify your OS version and what Mac model you're running. This is necessary because networksetup resides in different places on different OS versions, or doesn't exist at all in some cases.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Need help with script for conditional airport connection...||stepweb||Mac Programming||0||Feb 11, 2009 08:31 PM|
|Need Help with AirTunes and AirPort Express||IBDave||Mac Peripherals||5||Nov 12, 2008 10:47 AM|
|Need help with XP and Airport Express||DVDSP||Mac Basics and Help||5||Jan 23, 2006 09:32 PM|
|Need help with old graphite Airport base station...||yoda13||Macintosh Computers||1||Nov 8, 2004 03:16 PM|
|Need help with broadband and AirPort Express||johnnyjibbs||Macintosh Computers||9||Aug 26, 2004 06:25 AM|
All times are GMT -5. The time now is 09:15 PM.