Skip to content

Instantly share code, notes, and snippets.

@bakertim
Created February 19, 2014 01:12
Show Gist options
  • Save bakertim/9084225 to your computer and use it in GitHub Desktop.
Save bakertim/9084225 to your computer and use it in GitHub Desktop.
Apple-Script: Toggle Hidden Files
if (do shell script "defaults read com.apple.finder AppleShowAllFiles") is equal to "0" then
do shell script "defaults write com.apple.finder AppleShowAllFiles 1"
else
do shell script "defaults write com.apple.finder AppleShowAllFiles 0"
end if
tell application "Finder" to quit
delay 2
launch application "Finder"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment