Toggle AirPort.scpt is a simple AppleScript file that will either enable or disable your AirPort connection. It is best used with a program that lets you assign global hotkeys for running scripts, like Quicksilver, so you can toggle your wireless connection with a simple keystroke.
Installation and Use
Toggle AirPort.scpt to your computer.
Run the script. It's that easy.
If you are using Quicksilver, place it in a directory that is indexed. Set up a new trigger to run the script.
If Growl is installed, you'll get a popup notification.
Because OS X 10.7 (Lion) renamed "Airport" to "Wi-Fi", the original version of
Toggle Airport.scpt doesn't work. Version 2, released on July 25, 2011, does though, and is completely compatible with Lion. Version 1 is still available at Github for OS X 10.6 (Snow Leopard) users.
Version 2.1 works with the new Growl 1.3, available on the Mac App Store.
Toggle AirPort.scpt is licensed under the MIT License:
Copyright (c) 2009-11 Andrew Heiss (http://www.andrewheiss.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.