Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@amarilindra amarilindra commented Jun 25, 2019

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/

@SpaceDevz

This comment has been minimized.

Copy link

@SpaceDevz SpaceDevz commented Mar 29, 2020

Thanks! This is really useful!

@b0ogdan

This comment has been minimized.

Copy link

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