ControlPlane icon indicating copy to clipboard operation
ControlPlane copied to clipboard

How to use ControlPlace to pause Spotify while in a Meeting?

Open ssbarnea opened this issue 5 years ago • 1 comments

One very useful use-case would be to pause Spotify playing while you are in a meeting.

I would measure "being in a meeting" as having an application running, in my case BlueJeans. When this application is running I want to tell Spotify to pause.

Optionally I would like to resume it when the meeting application is quit.

ssbarnea avatar Nov 30 '18 09:11 ssbarnea

Seems like this is already possible with the existing "Running Application" evidence source paired with this shell script

#!/usr/bin/env bash

osascript -e 'tell application "Spotify" to playpause'

Script taken from here: https://github.com/hnarayanan/shpotify

mikew avatar Jan 10 '19 19:01 mikew