Skip to main content
snsok
Known Participant
May 26, 2019
Question

Renaming files: how to selectively remove and substitute text?

  • May 26, 2019
  • 1 reply
  • 1381 views

So my file naming convention is

[camera name]- [camera assigned sequence number]- [place] - [month]-[year]

I just too some images with my Fujifilm X-T2 in Arkansas on May 25. By mistake, I forgot to edit the file renaming box in the Import module before importing so they got the name of my old import.. The files actually imported as

XT2-15100-Tulsa-05-2019

I want to rename them in LR but retain the camera sequence number only. They should look like this:

XT2-15100-Arkansas-05-2019

I don't see a way to change Arkansas to Tulsa but retain the rest of the filename. I can do that with a file renaming program outside of LR.

Possible?

iMac / Mojave / LR CC 8.3 / Mac OS 10.14.4

This topic has been closed for replies.

1 reply

Rob_Cullen
Community Expert
Community Expert
May 26, 2019

Edit: Do NOT rename outside of Lightroom!!!

With the release of Lr-Classic v8.3 the original File Number Suffix is preserved in metadata irrespective of the photos being renamed at Import or at a later date.  (Previously the File Number Suffix was cleared if renamed at Import!)

So if you imported these photos with v8.3 you can rename with a corrected template that preserves the camera sequence number.

This rename template should do it for you-

Or, even better, you could make a more 'universal' preset template that asks you for the [place] when you rename-

You might then always use this (one) template and simply enter the 'new' location [place] in the Custom Text box.

Regards. My System: Windows-11, Lightroom-Classic 15.1.1, Photoshop 27.3.1, ACR 18.1.1, Lightroom 9.0, Lr-iOS 10.4.0, Bridge 16.0.2 .
snsok
snsokAuthor
Known Participant
May 26, 2019

I replied but I made a mistake. Here is my corrected reply:

Here is an example. The filename I need to correct is      _XTT7587-TulsaBotanic-20190505.RAF

The image was taken in France. The camera assigned number is the 7587  and when I entered custom text, I added the 20190505 manually typing it in, and not from the Metadata. 

I want to preserve the 7587.  When I used the template editor, here's what I saw:

The template editor is picking up the data I had typed into the custom name previously. It did not pick up the 7587 which is the camera-assigned sequence number.

I would like this image to be named:    XT2 - 7587 - France -05-2019

Thanks and much appreciated.,

Rob_Cullen
Community Expert
Community Expert
May 27, 2019

OK, so now the rename is more problematic.

Obviously you must have renamed these photos at Import with Lr v8.2 or earlier, as Lr has not preserved the original 'Camera' File Name Suffix.  It is now getting the File Name Suffix from the current filename _XTT7587-TulsaBotanic-20190505.RAF.

There may be a plug-in available, but none come to my mind at present.

Next suggestion might be to ignore my previous advice and use a rename app 'outside' of Lightroom- one that can preserve only the _XTT7587 portion of the filenames, then in Lightroom use the "Find missing photos" to re-link to the previews.

(I use Lupas Rename for these type of jobs. It can selectively delete prefix and suffix characters, etc )  Do not use the Import or Folder Synchronize unless you are prepared to lose ALL LR editing done with these photos.

Regards. My System: Windows-11, Lightroom-Classic 15.1.1, Photoshop 27.3.1, ACR 18.1.1, Lightroom 9.0, Lr-iOS 10.4.0, Bridge 16.0.2 .