Shell script within Hazel

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

Moderator: Mr_Noodle

Shell script within Hazel Wed Nov 20, 2013 10:56 am • by claas1
Hi,

I'm using this shell script

Code: Select all
/usr/bin/pstopf "$1"


in Hazel.
It runs fine in Terminal but not from Hazel.
Log says
Shell script failed: Error processing shell script on file ……..
Shellscript exited with non-successful status code: 127


What am I doing wrong?

Thanks
claas1
 
Posts: 4
Joined: Wed Nov 20, 2013 10:53 am

Re: Shell script within Hazel Wed Nov 20, 2013 12:47 pm • by Mr_Noodle
Try updating to the version released this morning and re-enter the script. It fixes a bug where Mavericks enables smart quotes in the script editor.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Shell script within Hazel Thu Nov 21, 2013 6:18 am • by claas1
Hi,

after the update there is no change.
I am on 10.8 still.
claas1
 
Posts: 4
Joined: Wed Nov 20, 2013 10:53 am

Re: Shell script within Hazel Thu Nov 21, 2013 3:38 pm • by Mr_Noodle
Enable debug mode (see the sticky article) and check the script output for any errors.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Shell script within Hazel Thu Nov 21, 2013 4:04 pm • by a_freyer
claas1 wrote:Hi,

I'm using this shell script

Code: Select all
/usr/bin/pstopf "$1"


in Hazel.
It runs fine in Terminal but not from Hazel.
Log says
Shell script failed: Error processing shell script on file ……..
Shellscript exited with non-successful status code: 127


What am I doing wrong?

Thanks



Are you sure it isn't: /usr/bin/pstopdf "$1"?


Code: Select all
/usr/bin/pstopdf "$1"
a_freyer
 
Posts: 631
Joined: Tue Sep 30, 2008 9:21 am
Location: Colorado

Re: Shell script within Hazel Fri Nov 22, 2013 3:55 am • by claas1
Oh my god. Such a simple typo.
Thanks a lot. Now it works.
claas1
 
Posts: 4
Joined: Wed Nov 20, 2013 10:53 am


Return to Support