Skip to content

Instantly share code, notes, and snippets.

@st44100
Created February 14, 2019 08:47
Show Gist options
  • Save st44100/b7eb6fae23e57afb5ae95942c9357457 to your computer and use it in GitHub Desktop.
Save st44100/b7eb6fae23e57afb5ae95942c9357457 to your computer and use it in GitHub Desktop.
Get current playing track from Spotify
# https://github.com/dronir/SpotifyControl/issues/2#issuecomment-8686456
tell application "Spotify"
set theTrack to current track
set theArtist to artist of theTrack
set theName to name of theTrack
set theCover to artwork url of theTrack
return theArtist & "|" & theName & "|" & theCover
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment