Forked from orkoden/hide or show desktop icons.applescript
Created
September 27, 2018 23:37
-
-
Save ScrypticLabs/b82222d13e18ea5a8ce6274690f5747f to your computer and use it in GitHub Desktop.
Revisions
-
orkoden renamed this gist
Jun 4, 2015 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
orkoden created this gist
May 20, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ 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