Page 1 of 1

using Hazel to run shell script

PostPosted: Sat Jul 22, 2017 8:46 am
by MacPukPro
Hi,

I tried to use Hazel to monitor a folder where audio files will be copied to and run a shell script to batch convert them by using VLC. I googled and there are 2 web sites mentioning about this. I copied the script to Hazel but failed to run.

https://unix.stackexchange.com/question ... -using-vlc
https://wiki.videolan.org/VLC_HowTo/Tra ... le_videos/

Link to rule image below:-
https://ibb.co/dvn2QQ

Any help would be greatly appreciated.
Thanks in advance!

Re: using Hazel to run shell script

PostPosted: Mon Jul 24, 2017 10:52 am
by Mr_Noodle
Note that you need to use $1 to refer to the file being processed, not $file.

Also, turn on debug mode as described here: https://www.noodlesoft.com/kb/hazel-debug-mode/

That will log the output of the script in Hazel's logs.