Mac OS X - Show hidden files script

Ok, so in my last post about showing the hidden files in finder I talked about the terminal commands but thats not always convenient for fast switching.
Below is some applescript that I wrote to do the job.

– www.infosonicgroup.com
– Shane Duffy

display dialog "Show hidden files in Finder" buttons {"Show", "Hide","Cancel"} default button 1
copy the result as [...]