Skip to content

Instantly share code, notes, and snippets.

@yfuruyama
Created December 28, 2013 03:08
Show Gist options
  • Save yfuruyama/8155699 to your computer and use it in GitHub Desktop.
Save yfuruyama/8155699 to your computer and use it in GitHub Desktop.
Applescript for enabling bluetooth
tell application "System Preferences"
activate
set the current pane to pane "Bluetooth"
end tell
tell application "System Events"
tell process "System Preferences"
click (menu button of splitter group of group of window 1)
click ((menu item "Update Services") of menu of menu button of splitter group of group of window 1)
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment