This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |