Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- activate application "SystemUIServer"
- tell application "System Events"
- tell process "SystemUIServer"
- -- Working CONNECT Script. Goes through the following:
- -- Clicks on Bluetooth Menu (OSX Top Menu Bar)
- -- => Clicks on Woz’s AirPods Pro Item
- -- => Clicks on Connect Item
- set btMenu to (menu bar item 1 of menu bar 1 whose description contains "bluetooth")
- tell btMenu
- click
- tell (menu item "Woz’s AirPods Pro" of menu 1)
- click
- if exists menu item "接続" of menu 1 then
- click menu item "接続" of menu 1
- return "Connecting..."
- else
- click btMenu -- Close main BT drop down if Connect wasn't present
- return "Connect menu was not found, are you already connected?"
- end if
- end tell
- end tell
- end tell
- end tell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement