Last active
August 29, 2015 14:11
-
-
Save amytych/0f40ea75d03997b66b88 to your computer and use it in GitHub Desktop.
Display name and artist for the current Spotify track
This file contains hidden or 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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.