


#Using exiftool to set title from filename mac#
MyXmp.appendArrayItem(XMPConst.NS_DC, "title", Title, 0, XMPConst.ALIAS_TO_ALT_TEXT) For any interested Mac users, I fixed ExifTool's not seeing p5.8-datemanip by getting rid of the generic version from ExifTool's homepage and replacing it with MacPorts' version. Var myXmpFile = new XMPFile(selectedFile.fsName, XMPConst.UNKNOWN, XMPConst.OPEN_FOR_UPDATE) exiftool -o test.xmp -ownerPhil -titleXMP File. Var Title = decodeURI(selectedFile.name).replace(/(^\d+?_)(.+?_\d+?)(_.+)/, '$2') Create XMP meta information data files for all images in dir. Is this possible EDIT: I seek a batch process, perhaps able to change all the photos in a folder at a time. If (ExternalObject.AdobeXMPScript = undefined) ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript") MY GOAL: find a exiftool command that would read the first ten characters of my photo's filename which is in YYYY.MM.DD format and then use this date as the photo taken data and change the metadata of the actual. Input filename: 032917_R_1234_Description.tifįT = MenuElement.create("command", "Add Specific Filename RegEx Pattern to Title", "at the end of Tools") Note that any content that already exists in the title field will be replaced: // I personally find it easier to work with regular expressions to modify a script, as I am only a beginner with JavaScript/ExtendScript so the methods used by SuperMerlin are not as clear to me as RegEx. Here is a Bridge script that I modifed to use the same regular expression capture group find/replace as used in the previous ExifTool example.
