Running an AppleScript on a movie file

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Running an AppleScript on a movie file 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?
waitreally
 
Posts: 8
Joined: Wed Jul 15, 2015 1:12 pm

Re: Running an AppleScript on a movie file 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.
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support