Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo defaults write /Library/Preferences/com.apple.Bluetooth BluetoothAutoSeekKeyboard '1'
- sudo defaults write /Library/Preferences/com.apple.Bluetooth BluetoothAutoSeekPointingDevice '1'
- 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
- osascript -e 'tell application "System Events" to tell process "SystemUIServer" to tell (menu bar item 1 of menu bar 1 whose description is "bluetooth") to {click, click (menu item 2 of menu 1)}'
- tell application "System Preferences"
- set current pane to pane id "com.apple.preferences.bluetooth"
- tell application "System Events"
- tell process "System Preferences"
- click checkbox "On" of window "Bluetooth"
- end tell
- end tell
- quit
- end tell
Add Comment
Please, Sign In to add comment