Hide Desktop Mess with AppleScript |
|
|
When I want to concentrate on a computing task, I often invoke the Finder’s “hide others” command by Command-Option-clicking on an icon in the Dock. But my screen is so big and my desktop so cluttered that merely hiding the other applications is hardly restful.
In less time that it would take to clean up the piles of icons on my desktop, I whipped up this AppleScript and mapped it to a function key. It grabs the path of the frontmost application, launches Katsura Shareware’s free Screenshot Helper — hiding everything on the desktop — and then switches back to the original app.
(*
db Hide-the-Desktop
By David Battino, Batmosphere.com, 2007-09-30
This script hides the desktop and then switches back to the previous app.
Requires Screenshot Helper, free at www.katsurashareware.com.
*)
set front_app to (path to frontmost application as Unicode text)
tell application "Screenshot Helper"
activate
end tell
tell application front_app
activate
end tell
Hopefully your virtual desktop is tidier than mine, but you may still find the “do something and then switch back” routine helpful.
Katsura Screenshot Helper covers your messy desktop with a pure color or photo.
 |
Read more at MacDevCenter |
|
www.oreillynet.com/mac/blog/2007/09/hide_desktop_mess_with_applesc.html?CMP=OTC-13IV03560550&ATT=Hide+Desktop+Mess+with+AppleScript |
|