Forked from orkoden/hide or show desktop icons.applescript
Created
April 3, 2025 15:11
-
-
Save uurf/05f6f153a08a861ce6dce0b1b3fcfd42 to your computer and use it in GitHub Desktop.
AppleScript to hide your messy desktop icons during presentations for Mac OS X.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment