A few LaunchBar actions for controlling your Sonos system:
- Play/Pause
- Mute/Unmute
- Volume Up
- Volume Down
Download and install Sonos Controller for Mac from sonos.com.
These actions are developed to work with Sonos Controller for Mac v8.0. Because the Sonos app doesn't officially support scripting via AppleScript, we have to resort to fragile GUI scripting. 🙈 Future changes to the Sonos app may break these actions. 😱
I recommend cloning the repo to install these actions like so:
git clone https://github.com/jasonrudolph/launchbar-sonos-actions.git
cd launchbar-sonos-actions
./script/setup
If you'd rather not do that, you can download this repository as a zip file, unzip it, and then double-click each individual action to install it.
📣 👋 Because these actions have to use AppleScript to control the Sonos GUI, the first time you trigger one of these actions via LaunchBar, macOS will prompt you to authorize the LaunchBar AppleScript Runner to run as an assistive device [screenshot].
Shout-out to @mlinzner's LaunchBar actions for Spotify as the inspiration for these Sonos actions. And shout-out to phpfunk/alfred-sonos-sound-controls for providing the majority of the AppleScript used to control Sonos in these actions.
Still reading? Dude, you're pretty serious about LaunchBar.
Lucky for you, the fun doesn't have to stop here. Why not try these other LaunchBar actions on for size? 👌