Turn Off Your Desktop [OS X Tips]
by Keir Thomas on Dec.07, 2011, under Uncategorized

If you’re using your Mac to give a presentation, you might not want everybody to see your messy desktop! If so, you can run a quick command that will hide your desktop icons.
To temporarily turn off the desktop, open a Terminal window (Finder->Applications->Utilities->Terminal) and type the following line:
defaults write com.apple.finder CreateDesktop -bool FALSE;killall Finder
Note that this will mean you can no longer right-click on the desktop or drag files there. The files there will still be accessible by using Finder to browse to your Desktop folder.
To restore things back to normal after your presentation, again open a Terminal window, but this time type the following:
defaults delete com.apple.finder CreateDesktop;killall Finder
Hey, presto! Everything should be back to normal. If not, log out and back in again.
With the use of a quick AppleScript, this Terminal command can even be turned into an standalone application that you can run before each presentation, saving the hassle of the command line.
Open AppleScript editor (Finder->Applications->Utilities->AppleScript Editor), and cut and paste the following code:
display dialog "Desktop icons visible or hidden?" buttons {"Visible", "Hidden"} with icon 2 with title "Switch to presentation mode" default button 1 set switch to button returned of result if switch is "Hidden" then tell application "Terminal" do shell script "defaults write com.apple.finder CreateDesktop -bool FALSE;killall Finder" end tell else tell application "Terminal" do shell script "defaults delete com.apple.finder CreateDesktop;killall Finder" end tell end if Click the Run button on the toolbar to test your script. You should see a dialog box appear with two buttons: Visible and Hidden. To make sure the app works OK, click Hidden to hide the icons, then run the app again and click Visible to reveal them again.
To save the AppleScript as an application, click File->Save As. Type a filename and, in the File Format dropdown list, select Application. Save the file, although not on your desktop–when the icons get hidden, you won’t be able to access it again to unhide them unless you use Finder.
- Change Hidden Mac Preferences with Defaults Write [MacRx]
- Create “Crazy Text” Emails For Holidays And Christmas [OS X Tips]
- Display Music Track And Artist Information In The Dock With This Secret iTunes Terminal Command [How-To]
- How To Get Rid Of The Ping Drop-Down Menu In iTunes
- Configure The Finder Sidebar And See More In Lion [OS X Tips]


