Editing Iptc information script stopped working

Started by jfavelle, July 14, 2014, 05:06:19 PM

Previous topic - Next topic

jfavelle

I have a script that takes the first letter of the file and sets the iptc:category information with that info that was working fine until last week.

I'm now getting an error saying
Tag '_' not defined
and
No Writeable tags set from (imageName)

The script is:
exiftool "-iptc:category<${filename;$_=substr($_,0,1)}" -overwrite_original *.jpg

Thanks in Advance

Phil Harvey

I assume you are running in Windows because of the quoting.

You must be using an old version of ExifTool to get this error.  Type "exiftool -ver" to see the version.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

jfavelle