Skip to content

Instantly share code, notes, and snippets.

@orkoden
Last active August 29, 2020 16:54
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save orkoden/dc5328c46bd639bffe71 to your computer and use it in GitHub Desktop.
Save orkoden/dc5328c46bd639bffe71 to your computer and use it in GitHub Desktop.
AppleScript to hide your messy desktop icons during presentations for Mac OS X.
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
do shell script "defaults write com.apple.finder CreateDesktop -bool FALSE;killall Finder"
else
do shell script "defaults delete com.apple.finder CreateDesktop;killall Finder"
end if
@amarilindra
Copy link

I have created an Automator App for the same use case.
You can try it here https://www.geekdashboard.com/show-hide-desktop-icons-on-mac/

@brodycritchlow
Copy link

Thanks! This is really useful!

@b0ogdan
Copy link

b0ogdan commented Apr 26, 2020

Thank you. Easy to use!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment