Page 1 of 1
Shell script within Hazel

Posted:
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
Re: Shell script within Hazel

Posted:
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.
Re: Shell script within Hazel

Posted:
Thu Nov 21, 2013 6:18 am
by claas1
Hi,
after the update there is no change.
I am on 10.8 still.
Re: Shell script within Hazel

Posted:
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.
Re: Shell script within Hazel

Posted:
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/pstop
df "$1"?
- Code: Select all
/usr/bin/pstopdf "$1"
Re: Shell script within Hazel

Posted:
Fri Nov 22, 2013 3:55 am
by claas1
Oh my god. Such a simple typo.
Thanks a lot. Now it works.