Skip to content

Instantly share code, notes, and snippets.

@philgruneich
Created March 16, 2014 05:06
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philgruneich/9578798 to your computer and use it in GitHub Desktop.
Save philgruneich/9578798 to your computer and use it in GitHub Desktop.
Show/Hide invisible files in Finder. Add to ~/Library/Application Support/Launchbar/Scripts to launch from Launchbar.
set stateMent to do shell script "defaults read com.apple.finder AppleShowAllFiles"
if stateMent = "TRUE" then
do shell script "defaults write com.apple.finder AppleShowAllFiles FALSE"
else
do shell script "defaults write com.apple.finder AppleShowAllFiles TRUE"
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