Error with Exiftool script

Hi,
I'm trying to create a rule to rename image files using Exiftool with the following Script:
Hazel returns an error processing shell script, here is the log:
The script works in Terminal, I replaced "$1" with the filename for testing purposes, like this:
What am I doing wrong?
I'm trying to create a rule to rename image files using Exiftool with the following Script:
- Code: Select all
exiftool -d %Y-%m-%d_%H%M%S '-filename<${DateTimeOriginal;}.%e' "$1"
Hazel returns an error processing shell script, here is the log:
- Code: Select all
2016-02-20 19:47:32.274 hazelworker[25836] Processing folder Fotos IN
2016-02-20 19:47:34.369 hazelworker[25836] DSC 323200.jpg: Rule fotos rename matched.
2016-02-20 19:47:34.372 hazelworker[25836] Exception caught while executing shell script: launch path not accessible
2016-02-20 19:47:34.373 hazelworker[25836] [Error] Shell script failed: Error processing shell script on file /Volumes/Data HD/Pictures/Fotos IN/DSC 323200.jpg.
2016-02-20 19:47:34.373 hazelworker[25836] Shellscript exited with non-successful status code: -900
2016-02-20 19:47:34.381 hazelworker[25836] Done processing folder Fotos IN
The script works in Terminal, I replaced "$1" with the filename for testing purposes, like this:
- Code: Select all
exiftool -d %Y-%m-%d_%H%M%S '-filename<${DateTimeOriginal;}.%e' /path/filename.jpg
What am I doing wrong?