Announcements
The Spotify Stars Program: Celebrating Values Week!

Help Wizard

Step 1

NEXT STEP

You broke AppleScript (Again)

Solved!

You broke AppleScript (Again)

 

Plan

Premium

Country

Argentina

 

Device

MacBook Pro 2017 Retina

Operating System

High Sierra

 

My Question or Issue

 

AppleScript is not returning current song correctly. The last build from Apr 23th Broke it. The script in question is the following:

 

 

 

if application "Spotify" is running then

tell application "Spotify"

return (get artist of current track) & " – " & (get name of current track)

end tell

else

return "Spotify"

end if

return

 

 

 

get artist of current track is not working anymore.

 

If you are going to force us to update, please next time don't break things.

 

Thanks in advance.

 

 

 

 

Reply

Accepted Solutions
Marked as solution

Looks solved now in latest 1.1.34.694.gac68a2b3 ! 🎉

View solution in original post

17 Replies

Yes, same here :((( It's working randomly now... Version: 1.1.31.703.g256add22

 

This is a debug of all properties of the current track on spotify... some data is loaded and other doesn't... 

 

cesar_pasache_0-1588259563934.png

 

Bump

Bump

dump

I have the same issue here. From what I can observe on my machine it's dependent on the origin of the current song. For songs that get autoqueued after the last song of a playlist it works almost perfectly. But as soon as I manually chose a song I don't get an output anymore.

Same here. does anyone know how long these things take to get fixed?

I hope in next release %) Bump

I played along with this and it seems that it in:

1. When Pause/Unpause Artis name and Title is not there 

2. When switching tracks using next/previous song buttons Artist Name and Title is not there

3. When switching to a new song by double clicking on it on the list - Artist name and title is not there

4. When song ends and next is played - Artist name and title is there

 

in all above cases I've observed that album name is present.

 

Disclaimer, there might be more values missing, I've only checked for album name, artist name and song title

 

 

Also the behaviour I'm observing (using AppleScript through Hammerspoon).

bump

... new version "1.1.33.569.gced9e0f5"... and still broke!!

 

😖

Bump; Has there been any update to this? 😞

Marked as solution

Looks solved now in latest 1.1.34.694.gac68a2b3 ! 🎉

Oh awesome! I just had a friend check and can confirm!

confirmed!!... now it's fine... 

 

cesar_pasache_0-1591278184879.png

 

I am still seeing some issues on 1.1.38.558.g4b100958...

 

The problem seems to stem from the "starred" property which causes fetching all properties to fail as well. This field is still documented in the Spotify library, but I would guess that it is a deprecated field from the old liking system (probably years old at this point). The library documentation should probably be updated and accessing the field should either fail because it doesn't exist, or should return a default value or something.

 

Screenshots:

Screen Shot 2020-08-04 at 09.12.22.pngScreen Shot 2020-08-04 at 09.17.00.png

Suggested posts