Running a shell script (embedded) in Hazel

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

Moderator: Mr_Noodle

Hi, I wanted to ask if someone can help me with this.

I have found a nice bash script here https://github.com/MichalMMac/convsubtitler

This script helps me to convert the encoding of subtitle files for movies. I have set up a hazel rule that will find specific .srt files and run a shell script on them.

As the instructions says, I entered the command /usr/local/bin/convsubtitler.bash -f CP1250 -t UTF-8 "$1" into the edit script window and tried to run it. But nothing is happening.

I made sure the script is in its place in the right folders and I even tried running the script from the Terminal. That works fine. But when I want it to run directly from Hazel, it does nothing. Can you help?

Thanks
originalmagneto
 
Posts: 1
Joined: Thu Nov 15, 2018 7:10 pm

Try turning on debug mode as described here: https://www.noodlesoft.com/kb/hazel-debug-mode/

Then view the logs. The script output should be logged there so that may help to see what's going wrong.
Mr_Noodle
Site Admin
 
Posts: 11236
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support