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


Click here to return to the 'A Service to hide/show the Desktop' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A Service to hide/show the Desktop
Authored by: nperry on Aug 05, '10 01:14:39PM

The following script will do the same without killing the Finder:

tell application "Finder"
	if visible of window of desktop then
		set the collapsed of window of desktop to true
	else
		open the window of the desktop
	end if
end tell

Note: I observe that sometimes the open is less than instant, other times it is, YMMV.

For the curious: you can test but not set the visible, you can open but not close, and setting collapsed to false fails as collapsing sets visible to false which you can't set... Hence the use of visible, collapsed and open!



[ Reply to This | # ]
A Service to hide/show the Desktop
Authored by: renaultssoftware on Aug 05, '10 02:06:10PM

Sorry, the hint meant "moving all your icons into la-la land" not "poofing every window into oblivion"

---
http://groups.google.com/group/applescripters/
http://qgf.in/
http://www.kompilesoft.info/



[ Reply to This | # ]
A Service to hide/show the Desktop
Authored by: nperry on Aug 05, '10 03:11:30PM

Does it not work for you?

I have it installed as a Service and can call it when the Finder or another application is frontmost. If the desktop icons are visible they get "sucked" into the Dock leaving the desktop picture visible, if they are not they reappear without any animation. I haven't found a way to kill the animation.

Tested only on 10.6



[ Reply to This | # ]
A Service to hide/show the Desktop
Authored by: renaultssoftware on Aug 06, '10 06:58:43AM

Thing is that it's in the Dock. It takes up space. How about closing it instead?

---
http://groups.google.com/group/applescripters/
http://qgf.in/
http://www.kompilesoft.info/



[ Reply to This | # ]
A Service to hide/show the Desktop
Authored by: nperry on Aug 06, '10 12:38:16PM

I'm using this on 10.6 so individual collapsed windows don't take up dock space. However the collapsed window doesn't even show up in the Finder's window list in the dock - it is well hidden in 10.6!

The Finder won't let you close the window, only collapse it. And contrariwise you can't uncollapse it, only open it! The window remains in the Finder's (private) window list all along, it is marked as collapsed & invisible after the icons are hidden.



[ Reply to This | # ]
A Service to hide/show the Desktop
Authored by: nperry on Aug 06, '10 02:47:52PM

Correction to the above: the desktop is shown in the Finder's Exposť window list after it is hidden. It is just not in the Finder's window list as a hidden window.

After using the above script to hide the icons click and hold the Finder's icon in the dock. Exposť will show just the Finder's windows and at the bottom you will see a (rather dark, at least in my case) desktop; select that and the icons will all pop back - quicker than using the script :-)



[ Reply to This | # ]
A Service to hide/show the Desktop
Authored by: memco on Aug 06, '10 12:11:19AM

Wow, this is cool and very clever. It seems to take a long time to restore the icons from collapsed form though. Any idea why?



[ Reply to This | # ]
A Service to hide/show the Desktop
Authored by: nperry on Aug 06, '10 12:41:06PM

None at all :-( Sometimes it just pops back, normally it takes a while. The window always exists so showing it shouldn't take time...



[ Reply to This | # ]