Created
July 24, 2013 23:12
-
-
Save NicholasModesto/6075479 to your computer and use it in GitHub Desktop.
#Shell script that toggles files on your OSX desktop.
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
VAL=$(defaults read com.apple.finder CreateDesktop); | |
if [ $VAL == 0 ]; then | |
osascript -e 'tell app "System Events" to display dialog "Your desktop has been restored."' | |
defaults write com.apple.finder CreateDesktop -bool true | |
killall Finder | |
else | |
osascript -e 'tell app "System Events" to display dialog "Now hiding your desktop."' | |
defaults write com.apple.finder CreateDesktop -bool false | |
killall Finder | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment