Page 1 of 1

printing theFile runs into sandboxing issues

PostPosted: Fri Nov 28, 2014 6:09 am
by MiB
How would you go about printing theFile variable that Hazel supplies? Sandboxing seems to prevent calling an app like Preview with Applescript.

As an alternative I tried a simple shell script
Code: Select all
lp $1
but what I get in the Hazel log is
"Shellscript exited with non-successful status code: 1".


The same command works from the terminal line without issues.

If I check the system log I have
2014-11-28 11:02:35,000 kernel[0]: CODE SIGNING: cs_invalid_page(0x10e247000): p=39194[hazelworker] final status 0x0, allowing (remove VALID) page
2014-11-28 11:04:12,601 xpcproxy[39372]: assertion failed: 13F34: xpcproxy + 3438 [D559FC96-E6B1-363A-B850-C7AC9734F210]: 0x2


It seems Hazel need a way to handle sandboxing to not be rendered less usable. What can be done?



indicating some permission thing.

Re: printing theFile runs into sandboxing issues

PostPosted: Fri Nov 28, 2014 2:17 pm
by Mr_Noodle
Try enclosing the $1 in double-quotes. I'm guessing there's a space in the path of the file being processed.

Re: printing theFile runs into sandboxing issues

PostPosted: Fri Nov 28, 2014 4:27 pm
by MiB
Mr_Noodle wrote:Try enclosing the $1 in double-quotes. I'm guessing there's a space in the path of the file being processed.


That turned out to be a very good guess! Thank you!