Created
May 29, 2013 01:13
-
-
Save andrewheiss/5667322 to your computer and use it in GitHub Desktop.
Toggle Bluetooth menu item
This file contains hidden or 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" | |
activate | |
set the current pane to pane "Bluetooth" | |
delay 1 | |
end tell | |
tell application "System Events" | |
tell process "System Preferences" | |
set toggleBluetooth to the checkbox "Show Bluetooth in menu bar" of the window "Bluetooth" | |
click toggleBluetooth | |
end tell | |
end tell | |
tell application "System Preferences" | |
quit | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment