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