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


Click here to return to the 'Remote control iTunes like a console CD player' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Remote control iTunes like a console CD player
Authored by: Murphy on Oct 29, '03 08:08:41AM
If you use
repeat while sound volume > currVolume / 3
		set sound volume to (sound volume - 1)
	end repeat
instead of
set sound volume to currVolume / 3
, you get a fade-out effect. You can replace the 1 with any number to have it work faster. My script now looks like this:
property userRating : 5
tell application "iTunes"
	set currVolume to sound volume
	if currVolume > 50 then
		repeat while sound volume > currVolume / 3
			set sound volume to (sound volume - 1)
		end repeat
		--	set sound volume to currVolume / 3
	else
		repeat while sound volume > currVolume / 2
			set sound volume to (sound volume - 1)
		end repeat
		--	set sound volume to currVolume / 2
	end if
	say "now setting " & name of current track & 
		" to  a rating of " & userRating & " stars."
	set the rating of the current track to userRating * 20
	--set sound volume to currVolume
	repeat while sound volume < currVolume
		set sound volume to (sound volume + 2)
	end repeat
end tell


[ Reply to This | # ]
Remote control iTunes like a console CD player
Authored by: Hes Nikke on Aug 27, '04 05:07:56PM

back in may when i was transitioning to Salling Clicker, i thought about doing something like the above... i never got around to doing that though.

i'll implement it tonight :)

---
vacuums do not suck. they merely provide an absence that allows other objects to take the place of what becomes absent.



[ Reply to This | # ]