ExifTool Forum

ExifTool => Newbies => Topic started by: dijkstra on January 26, 2013, 11:55:45 AM

Title: How do I ADD the filename ( with of without the extension) to the IPTC caption
Post by: dijkstra on January 26, 2013, 11:55:45 AM
I understand I can CHANGE the caption with the line "-iptc:caption-abstract<filename" but I want to ADD the filename. ( on a new line of separated with a - )
Can anyone help me because I cant find it on this forum

thanx
roel

Title: Re: How do I ADD the filename ( with of without the extension) to the IPTC caption
Post by: StarGeek on January 26, 2013, 01:20:01 PM
The following works for me under windows
ExifTool "-iptc:caption-abstract<$iptc:caption-abstract$/-$/$filename" <FILE>

The output is
Starting Caption
-
Test.jpg


I'm using $/ to insert a new line, you might check FAQ 21 (http://www.exiftool.org/faq.html#Q21) for other ways to insert a new line.

Of course, there might be other ways.
Title: Re: How do I ADD the filename ( with of without the extension) to the IPTC caption
Post by: dijkstra on January 26, 2013, 01:30:40 PM
Thanx, I will try this
roel