ExifTool Forum

ExifTool => Newbies => Topic started by: jforest on January 04, 2018, 03:29:35 PM

Title: Exiftool with Mac OS Automator?
Post by: jforest on January 04, 2018, 03:29:35 PM
Hi,

Can anyone offer some help in getting Automator to work with Exiftool? I am attempting to extract specific metadata fields from images and add them to an existing .csv. I can easily create a .csv that includes today's date with all the information I need by entering the following into Terminal:
exiftool -csv -r -filename -creator /Users/jforest/Desktop/EXIFTOOL_TEST >NOB_$(date +%m%d%y).csv

While trying to add this as a Shell Script launcher in Automator, I always get a response that says:
Run Shell Script failed ; command not found

A dated .csv is created in my user directory, but is empty.

I am comfortable using Terminal but need to create an automated workflow for people who are not, as I can't afford to have them brick these image files.
Title: Re: Exiftool with Mac OS Automator?
Post by: StarGeek on January 04, 2018, 04:01:27 PM
I'm not familiar with Automator, but the response of "command not found" sounds like it can't find exiftool.  Try using the full path to exiftool.
Title: Re: Exiftool with Mac OS Automator?
Post by: Hayo Baan on January 04, 2018, 04:07:57 PM
Stargeek is very likely right; the path used in the shells of the Automator script is different from the path of the shell when you e.g use the Terminal. You can tweak this, but this requires changing some files in /etc and is not recommended unless you know what you are doing.
Title: Re: Exiftool with Mac OS Automator?
Post by: StarGeek on January 04, 2018, 04:58:55 PM
Previous answer on subject (https://exiftool.org/forum/index.php/topic,6949.msg34929.html#msg34929).
Title: Re: Exiftool with Mac OS Automator?
Post by: jforest on January 05, 2018, 08:46:02 AM
@StarGeek
Many thanks, altering the path slightly lets me use Automator now!
Title: Re: Exiftool with Mac OS Automator?
Post by: Stephen Marsh on January 06, 2018, 07:05:56 PM
Apologies, a little bit late, you may find the following useful:

http://prepression.blogspot.com.au/2016/12/automator-diy-exiftool-gui-services.html

You can also find some other info on using Automator in the Developer's forum:

https://exiftool.org/forum/index.php/board,11.0.html