TVnamer script problem

Hello, i have installed tvnamer and it runs perfect in terminal. The problem is i cant get it to work with hazel. Everytime i get script error. Im using mac 10.6.6
My rule looks like this:

when i paste this into termial and choose file it runs good.
My rule looks like this:

when i paste this into termial and choose file it runs good.