Page 1 of 1

Running a terminal command in Hazel?

PostPosted: Sun Jan 26, 2020 6:19 pm
by hawks28
Hello,

I would like to run a terminal command (or something along those lines) in Hazel to transcode .mkv files as they are placed in the watched folder.

The basic terminal command is other-transcode --mp4 --burn-subtitle auto "/Volumes/Drobo/Video/<VariableTitle>.mkv" where the <VariableTitle> changes based on the name of the file in the folder being watched.

Is there a way to do this? I don't have much experience with terminal, AppleScript, JavaScript, etc.

Thanks in advance!

Re: Running a terminal command in Hazel?

PostPosted: Mon Jan 27, 2020 11:08 am
by Mr_Noodle
You want to use the "Run shellscript" command. Hazel will pass in the path of the file to be processed, which you can access as "$1".