Running an AppleScript on a movie file

Hello. I'm really not versed well in AppleScript but I'm trying to do the following:
If I open terminal and type
The script processes correctly.
However, I'm having difficulty running this AppleScript with Hazel. Essentially, I'd like to add a file to a folder and have Hazel process this script on it immediately after it's fully copied to the directory (some of these files are large so the copying can take a while).
Any ideas?
If I open terminal and type
- Code: Select all
osascript /Users/user/Dropbox/script.scpt /Users/user/Dropbox/movie.mov
The script processes correctly.
However, I'm having difficulty running this AppleScript with Hazel. Essentially, I'd like to add a file to a folder and have Hazel process this script on it immediately after it's fully copied to the directory (some of these files are large so the copying can take a while).
Any ideas?