Skip to main content
Inspiring
November 13, 2016
Answered

How to recover original Filename?

  • November 13, 2016
  • 3 replies
  • 8005 views

Hi guys,

Having renamed a file I sometimes need to find out the original file name so as not to delete its master by mistake - if the renamed file is a copy, or if it's a master to a copy used elsewhere. I think you get my point.

Thanks a lot,

Raphael

Correct answer Per Berntsen

In the Metadata panel there is a field below File Name called Original Filename.

It¨s visible when Metadata is set to Exif and IPTC.

3 replies

Participant
June 4, 2025
👍
Participant
August 29, 2024

You can create script for restoring Original filenames (it will recover it from metadata):
For script creation use text editor or code editor like "Visual Studio Code", paste code bellow and save it in .jsx format.

var selectedItems = app.project.selection;

for (var i = 0; i < selectedItems.length; i++) {
    var item = selectedItems[i];
    if (item instanceof FootageItem && item.file !== null) {
        var originalFilename = item.file.displayName;
        item.name = originalFilename;
    }
}

 
In After Effects do to File - Scripts - Run Script File - and open file script you just created.

john beardsworth
Community Expert
Community Expert
August 29, 2024

This is not relevant to Lightroom Classic.

Per Berntsen
Community Expert
Per BerntsenCommunity ExpertCorrect answer
Community Expert
November 13, 2016

In the Metadata panel there is a field below File Name called Original Filename.

It¨s visible when Metadata is set to Exif and IPTC.

Inspiring
November 17, 2016

Indeed! Thanks a lot Per.