using Hazel to run shell script

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

Moderator: Mr_Noodle

using Hazel to run shell script 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!
MacPukPro
 
Posts: 1
Joined: Sat Jul 22, 2017 8:34 am

Re: using Hazel to run shell script 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.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support

cron