Skip to content

Instantly share code, notes, and snippets.

Avatar

Johannes Berdin johannesberdin

View GitHub Profile
@swinton
swinton / star_now_playing.scpt
Created Feb 28, 2013
AppleScript to Star the current Spotify track. Requires [Starrify](https://github.com/swinton/starrify).
View star_now_playing.scpt
-- Check if Growl is running
tell application "System Events"
set isRunning to (count of (every process whose bundle identifier is "com.Growl.GrowlHelperApp")) > 0
end tell
-- Get URI of current Spotify track
tell application "Spotify"
set theTrack to current track
set theID to id of theTrack
set theName to name of theTrack
You can’t perform that action at this time.