Open vegardx opened 4 years ago
Hi, I dont know how it is with Spotify, but me being an Apple Music user I modified my .json config file so it works with the new catalina "Music" app instead of "iTunes" and added a feature so you can pause/unpause by pressing and skipping tracks by holding on the element. I works for me flawlessly on the latest version on MacOS. Feel free to change up some things, maybe it will help you sort this out.
"type": "appleScriptTitledButton",
"source":
{
"inline":
"if application \"Music\" is running then\rtell application \"Music\"\rif (player state is playing) or (player state is paused) \rreturn (get artist of current track) & \" – \" & (get name of current track)\relse\rreturn \"\"\rend if\rend tell\rend if\rreturn \"\"\r"
},
"action": "appleScript",
"actionAppleScript": {
"inline":
"tell application \"Music\"\rif player state is paused\rplay\relse\rpause\rend if\rend tell\r"
},
"longAction": "appleScript",
"longActionAppleScript": {
"inline":
"if application \"Music\" is running then \rtell application \"Music\"\rnext track & play\rend tell\rend if\r"
@vegardx I noticed that too, that's a bug in latest Spotify 🤦♂️ https://community.spotify.com/t5/Desktop-Mac/You-broke-AppleScript-Again/td-p/4937134 https://community.spotify.com/t5/Desktop-Mac/Applescript-no-longer-reports-Spotify-Connect-song-playing/td-p/4925257
Ok, looks solved now in latest Spotify v1.1.34.694.gac68a2b3 ! 🎉
After updating to Catalina (ugh, still regretting it) I've noticed that the song title and artist returns blank or empty strings. Randomly it will start displaying the information, but for the most part it will just return an empty string.
I'm not really sure if this is related to MTMR or just Catalina being a complete train wreck. I can see Spotify returning that it's not updating nowPlayingInfo because it apparently is identical, even though I changed to another song.
I also tried the music plugin. Same issue there.
Output of logs when changing song:
My configuration: