Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ScrypticLabs/b82222d13e18ea5a8ce6274690f5747f to your computer and use it in GitHub Desktop.

Select an option

Save ScrypticLabs/b82222d13e18ea5a8ce6274690f5747f to your computer and use it in GitHub Desktop.

Revisions

  1. @orkoden orkoden renamed this gist Jun 4, 2015. 1 changed file with 0 additions and 0 deletions.
  2. @orkoden orkoden created this gist May 20, 2015.
    7 changes: 7 additions & 0 deletions hide or show desktop icons
    Original 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