Move an iFlicks folder action to Hazel

Currently I'm using iFlicks' built in folder action to get it to tag files in a folder, but it isn't really working as intended, especially when there is more than two files in the folder (it tags two and then stops). That's why I want to use Hazel to send the files to iFlicks, and now I need som help.
This is iFlicks folder action:
How can I get this to work in Hazel? Right now I just get an error trying to run it like it is.
This is iFlicks folder action:
- Code: Select all
on adding folder items to thisFolder after receiving addedItems
repeat with movieFile in addedItems
tell application "iFlicks"
import movieFile without gui
end tell
end repeat
end adding folder items to
How can I get this to work in Hazel? Right now I just get an error trying to run it like it is.