Last active
November 23, 2016 19:19
-
-
Save alkalinecoffee/6b14706dded2b2f9833e to your computer and use it in GitHub Desktop.
applescript to toggle visiblity status of system/hidden files (sierra 10.12)
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
# for Sierra | |
try | |
set setting to (do shell script "defaults read com.apple.Finder AppleShowAllFiles") | |
on error line number num | |
set setting to 0 | |
end try | |
if setting is equal to "0" then | |
set setting to 1 | |
else | |
set setting to 0 | |
end if | |
do shell script "defaults write com.apple.finder AppleShowAllFiles " & setting & " && killall Finder" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment