Controlling Spotify with AppleScript

Jesse picture Jesse · Jan 17, 2012 · Viewed 13.6k times · Source

Essentially what I'd like to do is play an entire album via AppleScript. Right now, you can use their special URIs to load the album, but not play it. You can also play a specific track, but once that finishes playing, your queue resumes what was playing before.

Spotify's scripting dictionary is somewhat thin, does anyone know if there are plans to increase its depth a bit?

Answer

Jesse picture Jesse · Feb 13, 2013

More recent versions of Spotify have added this to the dictionary. For example:

tell application "Spotify"
    play track "spotify:album:7ppypgQppMf3mkRbZxYIFM"
end tell