Skip to content

Instantly share code, notes, and snippets.

@alkalinecoffee
Last active November 23, 2016 19:19
Show Gist options
  • Save alkalinecoffee/6b14706dded2b2f9833e to your computer and use it in GitHub Desktop.
Save alkalinecoffee/6b14706dded2b2f9833e to your computer and use it in GitHub Desktop.
applescript to toggle visiblity status of system/hidden files (sierra 10.12)
# 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