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


Click here to return to the 'Use iTunes visuals as a screen saver' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use iTunes visuals as a screen saver
Authored by: josh doubles on Feb 12, '04 08:42:48PM
I love the improvement but I noticed, with all these scripts, that if iTunes is not running it will be launched when the screen saver turns on.

I am a complete AppleScript novice but I devised this solution:


property theModule : "Cubes"
property okflag : false

tell application "System Events"
	if (get name of every process) contains "iTunes" then set okflag to true
end tell

if okflag then
	tell application "iTunes"
		if player state is playing then
			set full screen to true
			set visuals enabled to true
		else
			set okflag to false
		end if
	end tell
end if

if okflag is false then do shell script "/System/Library/Frameworks/
ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/
MacOS/ScreenSaverEngine -module \"" & theModule & "\""

Now you dont have to wonder why iTunes is always running. Enjoy!

[ Reply to This | # ]
Use iTunes visuals as a screen saver
Authored by: nerdtech on Feb 13, '04 11:49:05AM
This worked great - except you need to edit one line in your script:
if okflag then
actually needs to be...
if okflag is true then
Otherwise, it was still launching iTunes, if it was not currently opened. With that edit, I have a new screen-saver! Thanks!

[ Reply to This | # ]