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"
	activate
	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
	play
end tell
Enjoy!

[ Reply to This | # ]