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


Click here to return to the 'iTunes, the menu bar, unicode, and GeekTool' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
iTunes, the menu bar, unicode, and GeekTool
Authored by: webbix on Jul 21, '04 05:12:01PM
Thanks for the script. With that and another hint on checking for iTunes process I got mine running. I deployed slightly different as I place mine just below the menu bar as I have other data there and no Cinema display.

I did make a few changes the most important of which was to change the percent reading to a rudimentary progress bar. Just easier for me to visualize. Here is the code I subsittuted (also change the stars to take less room by subbing 1*, 2*, etc.):


	-- get the current position of the track and calculate how far through
	-- the track we are, as a percentage:
	set myPosition to player position
	set myDuration to duration of current track
	set myPercent to (round (myPosition / myDuration * 100))
	if myPercent < 10 then
		set myPercent to "]:::::::::"
	else if myPercent < 20 then
		set myPercent to ":]::::::::"
	else if myPercent < 30 then
		set myPercent to "::]:::::::"
	else if myPercent < 40 then
		set myPercent to ":::]::::::"
	else if myPercent < 50 then
		set myPercent to "::::]:::::"
	else if myPercent < 60 then
		set myPercent to ":::::]::::"
	else if myPercent < 70 then
		set myPercent to "::::::]:::"
	else if myPercent < 80 then
		set myPercent to ":::::::]::"
	else if myPercent < 90 then
		set myPercent to "::::::::]:"
	else
		set myPercent to ":::::::::]"
	end if
	set myPercent to spacer & myPercent

Thanks again for the original script!

[ Reply to This | # ]