Last active
December 16, 2015 18:19
-
-
Save juanpri/5476468 to your computer and use it in GitHub Desktop.
osascript example
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
| activation: | |
| tell application "System Events" | |
| tell process "SystemUIServer" | |
| tell (menu bar item 1 of menu bar 1 whose description is "bluetooth") | |
| click | |
| click menu 1's second menu item | |
| end tell | |
| end tell | |
| end tell | |
| deactivation: replace with "third menu item" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment