Skip to content

Instantly share code, notes, and snippets.

@jcabasc
jcabasc / spotify.scpt
Created Jun 7, 2017 — forked from DanielBlanco/spotify.scpt
Returns the name & artist of the current Spotify track
View spotify.scpt
if application "Spotify" is running then
tell application "Spotify"
set theName to name of the current track
set theArtist to artist of the current track
set theAlbum to album of the current track
set theUrl to spotify url of the current track
try
return "" & theName & " - " & theArtist
on error err
end try