Print photo at 4x6 when it appears in a folder

I'm trying to figure out a way to print photos at 4x6 automatically as they appear in a folder.
My conditions (which are working fine) are
"Date Last Modified is after Date Last Matched"
"Kind is Image"
I've found that the shell script
But that doesn't seem to be working for me (I'm getting a "non-successful error code 1"). I tried printing the value of $1 to a file, and it seems that it's the actual image itself (I got a lot of gibberish) rather than the path to the image.
Does anyone have any suggestions?
My conditions (which are working fine) are
"Date Last Modified is after Date Last Matched"
"Kind is Image"
I've found that the shell script
- Code: Select all
lp -o media=Custom.4x6in filename.jpg
- Code: Select all
LONG_FILENAME="$1"
echo "Name with full path: $LONG_FILENAME"
echo "Name with only filename: $(basename $LONG_FILENAME)"
But that doesn't seem to be working for me (I'm getting a "non-successful error code 1"). I tried printing the value of $1 to a file, and it seems that it's the actual image itself (I got a lot of gibberish) rather than the path to the image.
Does anyone have any suggestions?