Sorry for the late reply...
highend wrote:20160130_Bla_003.nef <-- same file name as jpg
So the name "ABC_1113.NEF" should be transformed to:
<exif date with yyyymmdd>_<stripped name of the old file>_<formatted counter>.<ext>
Resulting in:
20160130_ABC_003.nef
(and not: 20160130_Bla_003.nef)?
Not quite, sorry for the bad explanation. First, I thought if there is any switch in the bulk rename dialog of xyplorer that renames only unique filenames, ignoring possible file extensions (such that a counter would not increase for multiple files with the same name). However, this doesn't seem to be the case, so scripting will probably the only way to solve this...
So, back to the procedure. I am looking for a script that loops through all jpgs and (after dropping the old filename) renames them to the following pattern (if possible it would change the extension to lowercase, but that is not so important):
Code: Select all
<datec yyyy-mm-dd hh-mm> some dummy text <#001>
I don't have any special codecs installed, so if there is no native way how to extract the date information from exif data, the date of creation would be also fine (although I would prefer the exif date).
So far, it works, even without scripting (but with xyplorer's inbuild batch rename). But now comes the tricky part: Whenever there is a file with the same name (but different extension), it should rename it in such a way , that it also has the same name afterwards. In terms of the example above, a nef-image with the same name would get a new name with the counter incremented by one compared to its matching jpg.
As a bonus (but not directly necessary): If there are nef-files that were not renamed yet (because there are no matching jpgs), the same procedure could be applied the the nef-pictures: Rename them according to the pattern and rename all files in this folder that have the same name (but different extension) in a similar way.
I hope the problem became more clearly? Thank you in advance