Page 1 of 1

shell script that used to work now fails

PostPosted: Sun Dec 18, 2022 10:51 am
by wlad
Hi,

I have been running this script which I took from a photographer's website for many years and it always worked. Now there is aproblem, which I cannot locate.

Can anyone help? Here is the script:

exiftool -P -d '%Y-%m-%d at %H-%M-%S' \
'-filename<${FileModifyDate;}%-c.%e' \
'-filename<${GPSDateTime;}%-c.%e' \
'-filename<${MediaCreateDate;}%-c.%e' \
'-filename<${ModifyDate;}%-c.%e' \
'-filename<${DateTimeOriginal;}%-c.%e' \
"$1"

And here is the log: Shellscript exited with non-successful status code: 127

Re: shell script that used to work now fails

PostPosted: Mon Dec 19, 2022 11:18 am
by Mr_Noodle
This might be better handled in a forum dedicated to exiftool. You can turn on debug mode in Hazel as described here: https://www.noodlesoft.com/kb/hazel-debug-mode/

That will show more script output in the logs. Hopefully that will help you diagnose things.