Last active
December 20, 2015 22:49
-
-
Save inferjay/6207912 to your computer and use it in GitHub 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
| on run | |
| -- Read the current value of AppleShowAllFiles | |
| set plistValue to do shell script "defaults read com.apple.finder AppleShowAllFiles" | |
| set plistCommand to "defaults write com.apple.finder AppleShowAllFiles" | |
| if plistValue is "false" then | |
| set shellCommand to plistCommand & " true" | |
| else | |
| set shellCommand to plistCommand & " false" | |
| end if | |
| do shell script shellCommand | |
| -- Restart the Finder to see the new value | |
| do shell script "killall Finder" | |
| end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment