Can the Menubar-Item predefined action be used to connect/disconnect the laptop to specific bluetooth devices? Or enable/disable bluetooth?

Is it possible at all with BTT?

Should be possible (at least via applescript.)

For your information, I've managed to do it with following Apple Script (taken from here) :

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 device Item
		--      => Clicks on Connect Item
		set btMenu to (menu bar item 1 of menu bar 1 whose description contains "bluetooth")
		tell btMenu
			tell (menu item "Beats Solo³ de Anthonin" of menu 1)
				if exists menu item "Connect" of menu 1 then
					click menu item "Connect" of menu 1
					return "Connecting..."
					key code 53 -- 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

All you have to do is replacing "Beats Solo³ de Anthonin" with your device name, and if your computer isn't in English, replace "Connect" with its translation in your language.

Hope this helps :slight_smile:

1 Like