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
#!/bin/bash | |
osascript <<EOD | |
display dialog "Ready to play song?" | |
tell application "Spotify" | |
set current_volume to the sound volume | |
if (player state is playing) then | |
repeat | |
repeat with i from current_volume to 0 by -1 | |
set the sound volume to i |