Open ssbarnea opened 5 years ago
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
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.