My Question or Issue
I maintain a little Spotify menu bar tool (https://github.com/joshspicer/SpotStatus) that displays my currently playing track in my Mac status bar. I have Sonos speakers that I connect to via Spotify Connect (the green "listening on X" bar at the bottom of desktop client).
I used to be able to fetch the current track from my Desktop Spotify player with Applescript. I'm not sure when it happened, but that seems to be gone.
I would love to be able to fetch song information from the running desktop client, even when playing music through Spotify Connect/Airplay/etc...
if application "Spotify" is running then tell application "Spotify" if player state is playing then return name of current track else return "" end if end tell else return "" end if
Run this in the MacOS "Script Editor". When playing a song with Spotify Connect/Airplay/etc., will return "". It used to return the track name.