Created
July 23, 2016 03:21
-
-
Save AstroCB/560bd2d79fc3ab76d653d7d6f1379461 to your computer and use it in GitHub Desktop.
Displays a notification containing information about the currently playing Spotify track (works best when assigned to a keyboard shortcut)
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
tell application "Spotify" | |
set currentArtist to artist of current track as string | |
set currentTrack to name of current track as string | |
display notification "\"" & currentTrack & "\" by " & currentArtist with title "Now Playing" | |
delay 1 | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment