Make file/folder hidden

I found these great scripts that made whatever selected items in the Finder window hidden. In my stupidity, I saved the scripts as read-only, and now they’re broken in Leopard.

Does anyone know of a script that will make selected files in Finder hidden? Searching this forum, I found this one, but I don’t know how to add Finder to the mix.

Help appreciated.

try here…