Created
July 8, 2014 15:12
-
-
Save samuelkordik/7ef3c1784056ff8d806d to your computer and use it in GitHub Desktop.
AppleScript to toggle bluetooth on/off
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "System Preferences" | |
reveal pane "com.apple.preferences.Bluetooth" | |
end tell | |
tell application "System Events" to tell process "System Preferences" | |
click button 6 of window 1 | |
end tell | |
quit application "System Preferences" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment