[Originally posted by michaelw on 2010-02-14 08:42:33.967983-08]I am brand new to this forum so this question may have already been covered, I have searched fot it with no success. I have a number of old photos, some scanned, that I have renamed so that the tile reflects the contents of the photo. So for example "Water Skiing off Menorca.jpg" . I want to set the IPTC caption so that it equals the filename. I can partially do this using Exiftool with the command
exiftool "-IPTC:Caption-Abstract<filename" *.jpg
within a batch file But this inserts a caption as the whole file name so in the example above the caption is
Water Skiing off Menorca.jpg
and not
Water Skiing off Menorca i.e. without the .jpg file extension.
What I have tried to find is a string manipulation ability where I can set the caption to the filename less the last 4 characters which will always be .jpg. Looking through the ExifTool documentation I can't find anyway of doing this.
Any ideas or suggestions would be much appreciated.
Regards
Michael
[Originally posted by exiftool on 2010-02-14 18:31:48.91527-08]I haven't tried the forum search feature recently, but it has been
broken since the forum got upgraded a few weeks ago and
still may not be fixed.
Pity, because this question was asked before. The answer is
found with user-defined tags. In fact, this is exactly the
function of the example "BaseName" tag in the
sample
config file- Phil