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
-- 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 |