Page 1 of 1

Running an AppleScript on a movie file

PostPosted: Thu Aug 13, 2015 8:00 pm
by waitreally
Hello. I'm really not versed well in AppleScript but I'm trying to do the following:

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?

Re: Running an AppleScript on a movie file

PostPosted: Fri Aug 14, 2015 11:23 am
by Mr_Noodle
You can't just arbitrary scripts as Hazel requires a specific handler. Read the in-app help on AppleScript as it describes the requirements there.