I want to disconnect a connection to a bluetooth device through an Applescript. Please note that I don't want to disable or enable bluetooth, I just want to disable one specific connection.
MacOS – Is it possible to disconnect a bluetooth connection using Applescript
applescriptbluetoothmacos
Best Answer
Here is what I use for disconnecting my Samsung Soundbar. Also remember that you need to give permission to application to use
SystemUIServer
steps for that.System Preferences > Security & Privacy > Accessibility > [name_of_your_application]
One little remark: you need to have bluetooth icon on your menu bar.