4 Messages
•
130 Points
Thu, Oct 6, 2011 4:46 AM
Solved
Lightroom: Please Fix File Naming Issue
Please fix the Lightroom issue in which pesky (-1) and (-2) digits that are added to files names for no apparent reason.
I rename using a custom template (0001_YYMMDD), and it does not get rid of these numbers that LR adds making a file number like 2485_111004.CRW become
2485_111004-1.CRW or
2485_111004-2.CRW
Running the rename command again does not get rid of these extra numbers. I need a way to rename that gives each file a unique number with no extra -1 or -2 or -3 digits at the end of each filename. Thanks!
I rename using a custom template (0001_YYMMDD), and it does not get rid of these numbers that LR adds making a file number like 2485_111004.CRW become
2485_111004-1.CRW or
2485_111004-2.CRW
Running the rename command again does not get rid of these extra numbers. I need a way to rename that gives each file a unique number with no extra -1 or -2 or -3 digits at the end of each filename. Thanks!
Problems
•
Updated
7 years ago
0
11
Helpful Widget
How can we improve?
Tags
No tags available
Responses
Official Solution
JeffreyTranberry
Adobe Administrator
•
15.8K Messages
•
295K Points
7 years ago
Sr. Product Manager, Adobe Digital Imaging
0
0
rob_cole_2221866
4.5K Messages
•
76.3K Points
9 years ago
But definitely, you should check to see if it really does have a file of the same name you are trying to use already in the catalog - maybe its not a bug in your case. If that were the case, notifying the user would be nice but I don't know if it does that...
0
0
geoff_walker_2225610
Champion
•
221 Messages
•
4.1K Points
9 years ago
0
0
anders_lindgren
6 Messages
•
166 Points
9 years ago
For example: Assume that I want my pictures named "F1", "F3", "F4", and "F5" (i.e. no "F2"). I run my rename command on all files, starting with number "1". The result are the files "F1", "F2", "F3", and "F4". The next step is to select "F2" through to "F4" and do a second rename starting with number 3. The end result is "F1", "F3-1", "F4-1", and "F5". NOTE, AT THIS TIME THERE IS NO FILE NAMED "F3" OR "F4".
Fortunately, this is extremely easy to fix. When Lightroom renames the files, it picks one file at a time. Today, it starts with the first file "F2" and renamed it to "F3-1", as "F3" already is taken. If it instead would pick a file where the destination file is not present in the file system, in this case "F4" and rename it to "F5". It could then continue with the next file whose destination file isn't present and rename "F3" to "F4", and finally "F2" to "F3".
Seriously, as a programmer, I consider this algorithm being trivial, and it could probably be implemented by the Lightroom developers within minutes.
0
alan_harper
478 Messages
•
10.5K Points
9 years ago
When I open the raw file "foobar.raw" in Photoshop from Lightroom, I want it saved as "foobar 1.psd". The next time I open that raw file, I want it saved as "foobar 2.psd". This seems like such an easy and normal thing to ask for, but it doesn't appear that LR has the ability to append version numbers.
I am constantly editing file names. And the fact that I have to do it within Lightroom (and not in the Finder, as that will cause Lightroom to lose the file), is doubly annoying.
A
0
0
shaun_saxon
4 Messages
•
130 Points
9 years ago
I simply want the ability to create unique whole numbers for each file when I rename in Lightroom.
P.S. When I rename this particular job, the long stretches of -1 files turn into -2 files. When I rename a third time, the same -2 files turn back into -1 files. But the -X digits can't be made to go away.
0
0
becky_sowada
503 Messages
•
10.6K Points
9 years ago
You gave the rename format as (0001_YYMMDD). Can you specify what the 0001 is? Is that a sequence number, a static number, or some other value? Knowing that will help.
Thanks,
Becky
0
0
shaun_saxon
4 Messages
•
130 Points
9 years ago
I will then rename using my custom template. I typically have several thousand to import, so my template for that is
a four digit number starting with 1
followed by an underscore
followed by the year, month, and date.
If I create virtual copies I know that I will the -1 or -2 extensions, but in this case I had not even started processing yet. And there were stretches of files with the -1 added to filenames.
So the extra digits appeal for different reasons, some understood and some not.
In either case, I want to be able to rename all the files with unique whole numbers.
So 2298_111006 and 2299_111006
Not 2298_111006 and 2298_1106-1
Again, regardless of how or why they appear I want to be able to rename all the files so that the extra digits go away.
I could rename the JPEGs in Bridge after processing to accomplish this (get rid of the -1 or -2), but then the files names do not match for any files I have exported to JPEG previously.
Thank you
0
0
shaun_saxon
4 Messages
•
130 Points
9 years ago
If I create virtual copies I know that it will add the -1 or -2 extensions, but in this case I had not even started processing yet.
0
0
john_beardsworth
1.3K Messages
•
22.5K Points
9 years ago
To prove LR has a problem - set up a folder of 10 images and name them using a YYMMDD_{2 char sequence} {title} naming scheme. Now delete one image - the 4th - and try renaming them again. You'll see the 5th image onwards has a "-1" in the name.
You avoid it by renaming twice - once with a random renaming scheme, and then with the correct one.
John
0
0
becky_sowada
503 Messages
•
10.6K Points
9 years ago
@Shaun - regarding your comment, "Again, regardless of how or why they appear I want to be able to rename all the files so that the extra digits go away."...
I was able to re-select all the images, apply the rename again, and that got rid of the -1. Not an ideal workaround, I know, but it might help you get your files back to where you want them for the present.
1
0