Hide OSX Desktop Icons

Hi All,

Another little Applescript app I wrote up to hide Desktop Icons.

Useful prior to doing screenshots or before demos or presentations

Just copy & paste into Applescript Editor and Save As an Application or whatever

Enjoy

[sourcecode language=”text”]

—————————————————————————
— Hide Desktop Icons
— Author: Matt Dee
— Created: July 25, 2012
— Contact: oramatt.wordpress.com

— Display Dialog
display dialog "Hide Desktop Icons?" buttons {"Hide", "Show", "Cancel"} with icon stop default button 1
set userChoice to button returned of result

if userChoice = "Hide" then
do shell script "defaults write com.apple.finder CreateDesktop -bool false"
do shell script "killall Finder"
do shell script "open -a Finder"
else if userChoice = "Show" then
do shell script "defaults write com.apple.finder CreateDesktop -bool true"
do shell script "killall Finder"
do shell script "open -a Finder"
else if userChoice = "Cancel" then
— quit
end if

——————————————————————————

[/sourcecode]

Leave a Reply

Discover more from OraMatt: YABAOracle

Subscribe now to keep reading and get access to the full archive.

Continue reading