Toggle hidden file viewing in Mac OS X

My one regret with OS X’s Finder is that I have found no easy way to toggle viewing hidden files and folders. In fact I was so perturbed that I went and wrote a small application to toggle hidden file and folder visibility when ran.

There are a couple of sites out there that show the way to do it, but none are that graceful. They require the user to force restart Finder (which is not desirable) and they usually call upon the use of Terminal and typing out the full command.

Not satisfied with a simple answer, and trying to avoid actual work, I decided to write up an AppleScript that would toggle the visibility of hidden files and folders from “on” to “off” every time you clicked it. I then packaged it up in a pretty little application, and even gave it a custom small icon so you can drag it to the right side of current icons in a Finder window and it looks pretty sharp. I got the icon idea from here.

Here’s the application! Hope it helps you out like it did for me.

And for those out there that like code:

Comments

One Response to “Toggle hidden file viewing in Mac OS X”

  1. cheung on October 30th, 2008 4:04 pm

    hey man, nice bit of code. I can’t say I’ve really got a need to see my hidden files, but cool any way.

    I was actually just thinking about you, dood. I was just playing with a bit of code that switched my sleep mode on leopard to the “hibernation” mode that XP uses. I was thinking about what a pain in the ass it was to have to use terminal everytime I wanted to switch between the two. My initial thought was that this was the perfect excuse I needed to play with writing a short AppleScript prog but I wasn’t sure even where to start.

    Oh yea, when are you going to get around to making your site iPhone compatible? . )

Leave a Reply

You must be logged in to post a comment.