Skip to content

Instantly share code, notes, and snippets.

@amytych
Last active August 29, 2015 14:11
Show Gist options
  • Save amytych/0f40ea75d03997b66b88 to your computer and use it in GitHub Desktop.
Save amytych/0f40ea75d03997b66b88 to your computer and use it in GitHub Desktop.
Display name and artist for the current Spotify track
on run {input, parameters}
tell application "Spotify"
set t_artist to artist of current track
set t_name to name of current track
end tell
display notification t_name & " by " & t_artist
return input
end run
@amytych
Copy link
Author

amytych commented Dec 9, 2014

Many times, while listening to Spotify, I'd like to know what is the name of the current track. But I don't want to go to the app, breaking my current workflow, to just learn that information. Besides, I'm lazy.

So this little script does just what I want–displays notification with the name and artist of the currently played track in Spotify. It can be assigned to a keyboard shortcut using steps from this article.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment