I'm trying to create a Folder Action to transcode videos using Don Melton's scripts.
When I run the script, transcode_video
complains that HandBrakeCLI is not available, but when I run the command directly from the terminal it runs fine.
I'm guessing this is some kind of bash script security thing, but I'm an amateur at this game. Is there a way round this? I've had to revert to calling HandBrakeCLI directly, which is not as easy to optimise.
Best Answer
Two things:
export PATH="/usr/local/bin:$PATH"
My total working code: