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

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:

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