Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- artist=`osascript -e 'tell application "Spotify" to artist of current track as string'`;
- #album=`osascript -e 'tell application "Spotify" to album of current track as string'`;
- track=`osascript -e 'tell application "Spotify" to name of current track as string'`;
- osascript -e 'display notification "'"$track"'" with title "'"$artist"'"'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement