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


Click here to return to the 'Display iTunes artwork on the Desktop via GeekTool' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Display iTunes artwork on the Desktop via GeekTool
Authored by: jaysoffian on Sep 27, '06 01:47:33PM
I modified your script slightly. I took your entire script and wrapped it in:

on checkiTunes()
...
end checkiTunes
Next I added two handlers:

on run
	tell application "System Events"
		if exists (application processes whose name is "iTunes") then my checkiTunes()
	end tell
end run

on idle
	delay 10
	tell application "System Events"
		if not (exists (application processes whose name is "Finder")) then quit
		if exists (application processes whose name is "iTunes") then my checkiTunes()
	end tell
	return 0
end idle
I then saved it as an Application Bundle with

[ ] Run Only [ ] Startup Screen
[X] Stay Open
I then navigated to the saved bundle and edited iTunesArtwork.app/Contents/Info.plist adding to the top of the dictionary:

...
<dict>
        <key>LSUIElement</key>
        <true/>
...
Then I just added the app to my login items. Finally I omitted running the applescript via geektool+osascript (that should be obvious). You may have to logout/login for the app to stay hidden.

[ Reply to This | # ]