Wednesday, May 5, 2010

Display hidden files in Finder

You may have been in the situation where you want to display hidden files in Finder. I've found that necessary when I want to edit system files e.g. ".htaccess" .

There's a bunch of applications and script to do this but what I've noticed is that everyone of these are unnecessarily advanced.

What I did is that I developed a _simple_ AppleScript application which you execute to display hidden files and when/if you want to hide them you just execute it again.

set currentStatus to (do shell script "defaults read AppleShowAllFiles")

if currentStatus is "YES" then
do shell script "defaults write AppleShowAllFiles NO"
do shell script "defaults write AppleShowAllFiles YES"
end if

do shell script "KillAll Finder"

Download file
Mirror site #1
Mirror site #2

No comments:

Post a Comment