OSX: Toggle hidden files in Finder

Here's a little shell script I knocked up for toggling hidden files in finder. Running from the Finder toolbar To have this to hand from within finder you can create an application in Automater. Just select run shell script and paste the contents of this script. Save it as an…