Skip to content

Instantly share code, notes, and snippets.

@jonocole
jonocole / Spotify Silencer.applescript
Created March 27, 2012 15:44
Silence spotify ads
-- This isn't pretty but it works.
tell application "Spotify"
set old_volume to sound volume
repeat
if player state is playing then set current_album to album of current track
if player state is playing and (current_album starts with "http://" or current_album starts with "https://" or current_album starts with "spotify:") then
set sound volume to 0
play
else