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


bug fix | 28 comments | Create New Account
Click here to return to the 'bug fix' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
bug fix
Authored by: trekan on Aug 12, '04 04:39:29PM
oops

property idleInterval : 10

on checkOSD()
	tell application "System Events"
		if (exists process "iTunes") then
			tell application "iTunes"
				if not (minimized of first EQ window) and (player state is playing) then my showOSD()
			end tell
		end if
	end tell
end checkOSD

on showOSD()
	tell application "iTunes"
		tell current track to set {trk_arts, trk_name, trk_albm} to {the artist, the name, the album}
	end tell
	tell application "LanOSD"
		message kind "itunes-song" text trk_arts fade delay 65 over 1 quadrant 8 icon "music"
		message kind "itunes-song" text trk_name fade delay 65 over 2
		message kind "itunes-song" text "From \"" & trk_albm & "\"" fade delay 65 over 3
	end tell
end showOSD

on idle
	my checkOSD()
	return idleInterval
end idle

my checkOSD()


[ Reply to This | # ]