Toggle Show Hidden Files on Mac OS X

For some of us power users, wouldn’t it be nice if you could quickly show hidden files and then quickly hide hidden files again? Well now you can!

I have compiled the Apple Script below into an app, so you can download it and put it in your Applications folder and use it whenever you need it. There is also a Quick Launch app, which will add a little icon menulet in the top right menu bar, so you can quickly click on it to toggle between Show Hidden files and Hide Hidden files whenever you want:
DOWNLOAD HERE

In order for the Quick Launch app to work, you need to place both apps in your Applications folder. You can also add the Quick Launch app to “System Preferences > Users and Groups > Login Items” if you want it to start automatically when you turn on your computer.

Here is the Apple script used in the app:

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
tell application "Finder" to activate

Leave a Reply