ExifTool > Developers

Using exiftool with automator (osx)

(1/2) > >>

lobered:
I want to use exiftool with the mac automator to add Author and Copyright-Infos to my Photos via Mac Service.
But i habe a problem, it does not work:

i use

Run shell script:

for f in "$@"
do
  exiftool -overwrite_original -copyright="(c) my name" "$f"
done

Message (in german): Bei der Aktion „Shell-Skript ausführen“ ist ein Fehler aufgetreten.

Can someone help me.

Phil Harvey:
Why does everyone want to loop over the files in a script?

I don't know why your script doesn't work, but you should be able to do it without looping, like this:

exiftool -overwrite_original -copyright="(c) my name" "$@"

Here's another thread with someone using automator scripts.

- Phil

Hayo Baan:
The problem with Automator run scripts is that the environment is different from your normal shell. Paths are slightly different for one. As you don't see the output of your script, it is hard to see what really caused the issue. I suggest you redirect the output to a log file so you can see it. Use >> instead of > to keep appending to the file without overwriting earlier content.

Hope this helps,
Hayo

Phil Harvey:
Right.  Good point.  ExifTool now installs in /usr/local/bin, which may not be in the default Automator path.

So specify "/usr/local/bin/exiftool" instead of just "exiftool" in the script.

- Phil

lobered:
Thank you very much for your advice.
With path and no loop it works. Great!

Navigation

[0] Message Index

[#] Next page

Go to full version