property tick : 1 -- change volume level by this many each loopproperty thismany : 30 -- seconds to wait before making next change to volumetell application "iTunes" repeat set snd to sound volume if snd is less than or equal to tick then set sound volume to 0 exit repeat end if set sound volume to (snd - tick) delay thismany end repeat stopend tell