Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Oct 19, 2010, 05:17 PM   #1
lynkynpark86
macrumors 6502
 
Join Date: Mar 2010
Location: Maine, USA, Earth, Solar System, Milky Way, Universe
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.
lynkynpark86 is offline   0 Reply With Quote
Old Oct 19, 2010, 09:07 PM   #2
chown33
macrumors 603
 
Join Date: Aug 2009
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.
chown33 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Performance issues when extending airport extreme network with airport express Birkovic Mac Peripherals 15 Jul 18, 2014 09:40 AM
Bridge Mode for Airport Extreme & Airport Express? ssavanna OS X Mavericks (10.9) 7 Apr 1, 2014 10:22 AM
Questions RE: Airport Express (2012) vs. Airport Extreme (2011) warvanov Mac Peripherals 3 Jan 3, 2014 12:15 PM
Airport Time capsule = airport extreme + external hard drive? GP20 Mac Peripherals 24 Dec 5, 2013 12:51 AM
Streaming live Audio from Airport Extreme to an Airport Express (not iTunes/Airplay) marku5 Mac Peripherals 10 Sep 4, 2013 08:53 AM

Forum Jump

All times are GMT -5. The time now is 01:54 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC