Author Topic: saving filename to metadata field  (Read 1402 times)

stonecherub

  • Jr. Member
  • **
  • Posts: 10
saving filename to metadata field
« on: February 09, 2014, 10:47:06 AM »
With a thousand newly scanned color transparencies, I want to save the scan company's unwieldy filename as data just in case I ever have to return to the archived original scanned file (OK, I'm paranoid, so what?). I can't figure out how to do this using the help files and don't know if it can even be done. I tried to use the tag "XMP Photoshop\author Title" as a re-purposed container but it can be put in any text field, I don't care. 

StarGeek

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 3803
Re: saving filename to metadata field
« Reply #1 on: February 09, 2014, 05:23:02 PM »
I believe xmp:Title would be the appropriate place to stick it, though I could be wrong.

From IPTC Standards “IPTC Core” Schema for XMP pdf

"Title
This field can be used as a shorthand reference for the image or "photograph" — primarily for identification. The title of an image may take several forms; for photographers this might be the filename of their original scan or digital camera file"

The basic command would be this, where you would replace "<DIR/File>" with the Directory or Filename you wish to use:
ExifTool "-Title<Filename" <DIR/File>

You could add -overwrite_original to avoid making backups once you were sure that it worked properly and -r to recurse down through all directories.

Hope that helps
Troubleshooting hints:
* When posting, include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).
* Double all percent signs (%) in a Windows batch file.
* If your GPS coords are negative, make sure and set the GpsLatitudeRef and GpsLongitudeRef tags correctly.

stonecherub

  • Jr. Member
  • **
  • Posts: 10
Re: saving filename to metadata field
« Reply #2 on: February 10, 2014, 04:15:26 PM »
Worked like a charm, thanks for the help