betterzip automation

I would like to do the following and can not seem to get things to work.
I want hazel to monitor a folder and when a new file arrives, I want open betterzip and use a preset to automatically zip and encrypt and then copy to dropbox. All of this without having any user interaction. Any advice would be helpful. I tried using the script on Hazel automation page but get error with regards to "theFile".
Thank you.
I want hazel to monitor a folder and when a new file arrives, I want open betterzip and use a preset to automatically zip and encrypt and then copy to dropbox. All of this without having any user interaction. Any advice would be helpful. I tried using the script on Hazel automation page but get error with regards to "theFile".
Thank you.