Spotify continues playing on my Mac when my bluetooth headphones are disconnected (when they go out of range or lose battery for example). I have an AppleScript to pause Spotify, and I want it to be run upon the bluetooth device disconnecting. How can I detect when the bluetooth headphones are disconnected?


system_profiler SPBluetoothDataType can check you bluetooth status.

There will be connection parameters Connected: Yes or No

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .