Skip to content

Instantly share code, notes, and snippets.

View aleksgapp's full-sized avatar
:octocat:

Aleksey Gaponov aleksgapp

:octocat:
View GitHub Profile
@aleksgapp
aleksgapp / spotify
Last active November 28, 2016 14:32
#!/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