OraMatt: YABAOracle

Yet Another Blog About Oracle

, ,

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


---------------------------------------------------------------------------
-- 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

------------------------------------------------------------------------------

Leave a comment

Navigation

About

I’m Matt and I do Oracle things.