Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'AppleScript: Delay can be used with non-integer values' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
AppleScript: Delay can be used with non-integer values
Authored by: rulerk on Feb 22, '04 05:50:18PM
I quite like this script that fades to the next song, but I also use this modification to the script to fade to the currently selected (rather than just next) song:

tell application "iTunes"
	set nOldSoundVolume to sound volume
	repeat with nSoundVolume from sound volume to 0 by -1
		set sound volume to nSoundVolume
		delay 0.1
	end repeat
	play selection
	set sound volume to nOldSoundVolume
end tell

[ Reply to This | # ]