Running a terminal command in Hazel?

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

Moderator: Mr_Noodle

Running a terminal command in Hazel? 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!
hawks28
 
Posts: 2
Joined: Sun Jan 26, 2020 6:01 pm

Re: Running a terminal command in Hazel? 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".
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support