Page 1 of 1

Shell script action summary / failure report

PostPosted: Fri Nov 11, 2016 9:20 pm
by fuank
Is it possible to log the results of shell scripts triggered with hazel to a file and send a notification?

I have a bunch of sed-based search & replace actions and it would be great if I could be alerted whenever one of them encounters an error or its search pattern isn't actually found and so no replacement occurred.

Re: Shell script action summary / failure report

PostPosted: Mon Nov 14, 2016 12:01 pm
by Mr_Noodle
If you turn on debug mode (https://www.noodlesoft.com/kb/hazel-debug-mode/), the script output will go to the logs. Anything beyond that, though, will have to be coded into the script itself.