Page 1 of 1

Running a shell script (embedded) in Hazel

PostPosted: Thu Nov 15, 2018 7:15 pm
by originalmagneto
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

Re: Running a shell script (embedded) in Hazel

PostPosted: Fri Nov 16, 2018 11:44 am
by Mr_Noodle
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.