[LB6 Action] Control Sonos

Sharing and discussing custom actions for LaunchBar
Post Reply
Posts: 12
Joined: Mon Dec 28, 2015 3:03 am

[LB6 Action] Control Sonos

Post by jasonrudolph » Mon Mar 20, 2017 3:02 am

Control your Sonos system via LaunchBar. You can play, pause, mute, unmute, and adjust volume up and down.


https://github.com/jasonrudolph/launchb ... v0.1.0.zip

Source code

If you don't already have it, you'll need to download and install Sonos Controller for Mac from sonos.com. These actions are developed to work with Sonos Controller for Mac v7.1. Because the Sonos app doesn't officially support scripting via AppleScript, we have to resort to fragile GUI scripting. As a result, future changes to the Sonos app may break these actions.

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].

If you give this action a try and you run into any issues, please let me know. <3

Post Reply