For reference here is the code:
defaults write com.apple.finder AppleShowAllFiles TRUE
Don’t get me wrong, playing in Terminal is sublime geekiness but still something I wish was easier. Say, with a keyboard command or mouse click.
This is where Automator comes in. Automator is a way in OSX to, as you might guess, automate tasks.
User madgunde over at Art of Geek put together a great article on how to create an Automator script to add a services menu option for all Finder windows. This makes is very convenient to with just a click to switch the display of hidden files. And it is more graceful than using the KillAll Terminal command.