Skip to content

Instantly share code, notes, and snippets.

@jalvarado91
Last active August 29, 2015 14:02
Show Gist options
  • Save jalvarado91/d825a38510be7ed35d1b to your computer and use it in GitHub Desktop.
Save jalvarado91/d825a38510be7ed35d1b to your computer and use it in GitHub Desktop.
API METHOD
osascript -e 'tell application "Spotify" to id of current track' | sed -e 's/.*track://' | xargs -I {} curl -X GET "https://api.spotify.com/v1/tracks/{}"
LOCAL METHOD
osascript -e 'tell application "Spotify" to name of current track';osascript -e 'tell application "Spotify" to artist of current track';osascript -e 'tell application "Spotify" to album of current track';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment