Skip to content

Instantly share code, notes, and snippets.

View johannesberdin's full-sized avatar

Johannes Berdin johannesberdin

View GitHub Profile
@swinton
swinton / star_now_playing.scpt
Created February 28, 2013 14:33
AppleScript to Star the current Spotify track. Requires [Starrify](https://github.com/swinton/starrify).
-- 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