Useful when Keyboard Maestro does not work.
For instance, I use Arc which takes precedence over Spotify when Play/Pause button on Mac is pressed. For situations when I want to play music instead of playing the video in Arc, I've added ◆ + ⏯
(Hyper Key) with this script:
applescript
using terms from application "Spotify"
tell application "Spotify" to playpause
end using terms from