This file contains 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
#!/usr/bin/env osascript | |
# Returns the current playing song in Spotify for OSX | |
tell application "Spotify" | |
if it is running then | |
if player state is playing then | |
set track_name to name of current track | |
set artist_name to artist of current track | |
set curVolume to get volume settings |