Page 1 of 1

Can you write to the Hazel Log file from a shell script?

PostPosted: Thu May 17, 2018 6:19 pm
by dburr
Subject line speaks for itself. I tried something like this

Code: Select all
doSomething && echo "It worked!" || echo "It did NOT work"


but that didn't add anything to the Hazel log window. Is there any way of adding text to the Hazel log from within a shell script action?

Re: Can you write to the Hazel Log file from a shell script?

PostPosted: Fri May 18, 2018 11:02 am
by Mr_Noodle
Hazel normally does not log script output. You'll need to turn on debug mode as described here: https://www.noodlesoft.com/kb/hazel-debug-mode/

After that, any output from your script should appear.

Re: Can you write to the Hazel Log file from a shell script?

PostPosted: Tue May 22, 2018 1:01 am
by dburr
Mr_Noodle wrote:Hazel normally does not log script output. You'll need to turn on debug mode as described here: https://www.noodlesoft.com/kb/hazel-debug-mode/

After that, any output from your script should appear.


Perfect, that actually makes sense, since I would only need to be able to print to the log while I am debugging a script action. Thanks!