macOS Hide Desktop

display dialog "This script will let you hide your desktop icons." buttons {"Hide", "Show", "Cancel"} set the button_pressed to the button returned of the result if the button_pressed is "Hide" then do shell script "defaults write com.apple.finder CreateDesktop false;killall Finder" else if the button_pressed is "Show" then do shell script "defaults write com.apple.finder CreateDesktop true;killall Finder" end if

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.