printing theFile runs into sandboxing issues

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

Moderator: Mr_Noodle

printing theFile runs into sandboxing issues 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.
MiB
 
Posts: 11
Joined: Fri Nov 28, 2014 3:54 am

Try enclosing the $1 in double-quotes. I'm guessing there's a space in the path of the file being processed.
Mr_Noodle
Site Admin
 
Posts: 11866
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: printing theFile runs into sandboxing issues 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!
MiB
 
Posts: 11
Joined: Fri Nov 28, 2014 3:54 am


Return to Support