Error calling sips from embedded script

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

Moderator: Mr_Noodle

Error calling sips from embedded script Tue Dec 13, 2011 7:58 pm • by jordantbro
Hi all,

Running into some trouble with, what I expected to be, a simple embedded shell script Rule for scaling/renaming images as they're dropped into a folder.

The script works as expected from the Terminal when run with the image passed as a variable:

Code: Select all
$ ./resize.sh test.png


Image

shell script:
#! /bin/bash
outName='resized-'$1
sips --resampleWidth 580 $1 --out Site\ Images/Resized/$outName


When run through Hazel I get the following error via Growl:

Image

I'm quite certainly missing something obvious, but I hope some additional eyeballs can point me in the right direction.

Thank you in advance.
Jordan
jordantbro
 
Posts: 2
Joined: Tue Dec 13, 2011 7:43 pm

Just realized that the Hazel log contained a more complete error. This board did provide me with a point in the right direction, thanks to the post on troubleshooting tips.
Jordan
jordantbro
 
Posts: 2
Joined: Tue Dec 13, 2011 7:43 pm


Return to Support