Author Topic: incrementing file # only when there's a name collision?  (Read 3842 times)

Offline kbw

  • Newcomer
  • *
  • Posts: 15
    • View Profile
incrementing file # only when there's a name collision?
« on: June 05, 2016, 07:47:09 PM »
Hi, I'm new to photo mechanic.

When batch renaming my files with ctrl-m,
I'd like to have a method to only add an increment number when
there's a file name conflict, as follows:

filenameone.raw  (no conflict
filenametwo.raw (no conflict)
filenamesame.raw (will conflict
filenamesame_1.raw (automatically add a "count" variable)

Is this type of thing possible, or do I need to add a sequence number to all the files?

Thanks!
KBW

PS--Really enjoying the program... a huge time saver

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24977
    • View Profile
    • Camera Bits, Inc.
Re: incrementing file # only when there's a name collision?
« Reply #1 on: June 06, 2016, 09:06:41 AM »
When batch renaming my files with ctrl-m,
I'd like to have a method to only add an increment number when
there's a file name conflict, as follows:

filenameone.raw  (no conflict
filenametwo.raw (no conflict)
filenamesame.raw (will conflict
filenamesame_1.raw (automatically add a "count" variable)

Is this type of thing possible, or do I need to add a sequence number to all the files?

The collision resolution can be controlled, though inserting an underscore is not supported:

http://wiki.camerabits.com/en/index.php?title=User_Manual_Flat_View#Files_Preferences

Renaming resolution: Set options for what Photo Mechanic should do when it tries to save a file to a folder and there is an identically named file already present at the destination. This policy applies to all renaming operations. You can choose to append a letter, or a single or double digit number, when needed. The best option here is probably ‘Append Digits when needed (01,02 etc.)’. This option makes it easy to see at a glance when there were two files with the same name since the new file name will be longer and easy to spot.

HTH,

-Kirk