• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

Batch rename preserving original filename AND modified date

Participant ,
Jul 18, 2018 Jul 18, 2018

Copy link to clipboard

Copied

I’m cleaning up a lot of photos and I want to rename them all using a file naming convention. I want to store the original filename in the metadata so we will be able to find the correct file in case an old filename is referenced.

Bridge has the a checkbox ‘Preserve current filename in XMP Metadata’ for that. Problem is, when this is ticked, Bridge also changes the ‘Modifed date’ of the files. This date is very important in our workflow and should not change.

Any ideas how to store the original filename in metadata AND preserve the modified date of files? Using Bridge or other software (on mac).

Views

2.3K

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jul 18, 2018 Jul 18, 2018

I am not sure if it is possible to retain the original modified date with Bridge scripting… However it is possible with ExifTool:

exiftool -P -overwrite_original_in_place '-XMP-xmpMM:PreservedFileName<${filename;s/\.[^.]*$//}' -ext .tif -r '/mac/path/to-file/or top level folder'

Note: This command will overwrite your original files without creating an auto backup, so work on copies until you are sure that the results are correct. The preserved filename will not include the filename extension, howe

...

Likes

Translate

Translate
Community Expert ,
Jul 18, 2018 Jul 18, 2018

Copy link to clipboard

Copied

I am not sure if it is possible to retain the original modified date with Bridge scripting… However it is possible with ExifTool:

exiftool -P -overwrite_original_in_place '-XMP-xmpMM:PreservedFileName<${filename;s/\.[^.]*$//}' -ext .tif -r '/mac/path/to-file/or top level folder'

Note: This command will overwrite your original files without creating an auto backup, so work on copies until you are sure that the results are correct. The preserved filename will not include the filename extension, however if you do wish to include the extension (as Adobe does) it is simple enough to remove the regex. Preserved filenames can be restored using Bridge or ExifTool with a different command. I have added a file extension filter to only process .TIF files in this example which could be changed or removed as required.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 18, 2018 Jul 18, 2018

Copy link to clipboard

Copied

Thanks, this worked perfectly.

However, a followup question. How to search a file with the old filename?

Neither Finder (Spotlight) nor Bridge show the files when I search for the old filename.

Perhaps there's another meta field I could store the original filename in, which is searchable with Spotlight or Bridge?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 18, 2018 Jul 18, 2018

Copy link to clipboard

Copied

You can either use ExifTool, or Bridge’s Find command:

find.png

The first search criteria on All Metadata = xmpMM:PreservedFileName (don’t use the <> characters)

The second search criteria on All Metadata = whatever the preserved name was

The Match has to be if all criteria are met, not any.

I personally would not recommend using a different field that is more accessible.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 18, 2018 Jul 18, 2018

Copy link to clipboard

Copied

You are the man!

I did not know about the 'All Metadata' criteria.

Your solutions work perfectly, thanks!

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 18, 2018 Jul 18, 2018

Copy link to clipboard

Copied

The All Metadata option is great, however I believe that it only finds metadata entries visible in the File > File Info > Raw Data window:

file info.png

To search deeper into a file, Bridge scripting is required.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 18, 2018 Jul 18, 2018

Copy link to clipboard

Copied

In my specific case this isn’t an issue, but it would be great if it really searched in ALL metadata.

One thing I would like though, is using the Bridge Quick Search box (in the upper right corner) to search in metadata instead of using the find dialog.

Something like: metadata:old filename (< example that doesn’t work)

Perhaps there is a way, but I can’t find any documentation on the syntax of the Bridge Search engine.

Not a big deal, but would be handy to have a quick, keyboard-only search.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 21, 2020 May 21, 2020

Copy link to clipboard

Copied

is the EXIF Tool App you refer to the ModiLab Co one in App Store? Im tired of paying for apps to find I have the wrong one?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 21, 2020 May 21, 2020

Copy link to clipboard

Copied

LATEST

Answered my self, found the Name EXIF Tool was a hyperlink Sorry!

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines