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 »