Skip to content

Instantly share code, notes, and snippets.

@Pe8er
Created April 19, 2018 20:39
Show Gist options
  • Save Pe8er/a98a673e7bc2f762dd12fe556478aad3 to your computer and use it in GitHub Desktop.
Save Pe8er/a98a673e7bc2f762dd12fe556478aad3 to your computer and use it in GitHub Desktop.
if application "iTunes" is running then
tell application "iTunes" to set {tArtist, tName, tAlbum, isLoved} to {artist, name, album, loved} of current track
if isLoved is true then
set isLoved to "★" & space
else
set isLoved to "☆" & space
end if
return isLoved & tArtist & space & "-" & space & tName
else
return ""
end if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment