Please see my Alfred Extensions page for updates!
A quick and easy one for Alfred: a command which toggles AirPort on/off.
If you are using Alfred 0.9.9 (or better), you should be able to download this ZIP file and import it!
If you are using an earlier version of Alfred, follow these instructions:
AIRPORT=`networksetup -getairportpower AirPort | grep Off`; if [ "$?" = "0" ]; then networksetup -setairportpower AirPort on; MSG="AirPort enabled"; else networksetup -setairportpower Airport off; MSG="AirPort disabled"; fi; /usr/local/bin/growlnotify -m "$MSG" -a "/Applications/Utilities/Airport Utility.app" AirPort status
Create as a terminal script and configure it to be silent. I also borrowed the icon from AirPort utility for the script (Alfred for “airport” and then use Reveal in Finder on it; Get Info; click Icon and ⌘C; click the icon area in Alfred and ⌘V).




