If you found this post via a search, you are probably like me, "not great" at keeping your desktop clear "stuff" (you probably have a 'stuff' folder you once put stuff in and forgot about).
If you are, and you go into a presentation, you probably don't want to have all of your icons visible (and possibly recorded). Hiding your desktop icons on Windows (since 7 I believe) is pretty simple.
On OSX, its not as straight forward. Following a tip I found here: http://hints.macworld.com/article.php?story=20100804092806364 I was able to create a keyboard shortcut to hide, or unshide everything.
First, open up "Automator" and create a new document / "Service"
Then drag and drop "Run AppleScript" from the Utilities section:
Next, make sure it says that the service doesn't accept input from any application:
Paste in the following script:
on run {input, parameters}
set myAnswer to (do shell script "defaults read com.apple.finder CreateDesktop") as boolean
do shell script "defaults write com.apple.finder CreateDesktop " & ((not myAnswer) as string)
do shell script "killall Finder"
end run
On the first run, you may get an error stating that the variable doesn't exist or that it couldn't convert it into a boolen. This is because by default this variable doesn't exist for new users. All you have to do to correct this is open a terminal and type:
defaults write com.apple.finder CreateDesktop true
To set it for the first time:
Back in Automator, re-do the test run of the script:
Save the file and then you can setup up a keyboard shortcut in System Preferences:
Hit Control+Cmd+H to your hearts content.
0 comments:
Post a Comment