Skip to content

Instantly share code, notes, and snippets.

@juanpri
Last active December 16, 2015 18:19
Show Gist options
  • Select an option

  • Save juanpri/5476468 to your computer and use it in GitHub Desktop.

Select an option

Save juanpri/5476468 to your computer and use it in GitHub Desktop.
osascript example
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