Skip to content

Instantly share code, notes, and snippets.

@mybuddymichael
Created April 24, 2011 19:50
Show Gist options
  • Save mybuddymichael/939827 to your computer and use it in GitHub Desktop.
Save mybuddymichael/939827 to your computer and use it in GitHub Desktop.
Quickly turn Airport off and on
do shell script "/usr/sbin/networksetup -setairportpower en1 off"
do shell script "/usr/sbin/networksetup -setairportpower en1 on"
@mybuddymichael
Copy link
Author

My iMac's Airport device never wants to connect after a wake unless I turn it off and turn it back on again, so this quickly does that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment