Duplicate files?

Advanced Renamer forum
#1 : 15/05-20 09:23
capoeira
capoeira
Posts: 3
I have a filesystem with images, that after the renaming, end up like so:

cat.jpg
cat.jpg
dog.jpg
dog.jpg
dog with toy.jpg
dog with toy.jpg

I know name collision rules exist, but they would number ALL of the files with collision with a single numbering system. What I'm looking for is for the filesystem to number each "pattern" with it's own numbering, like so:

cat 1.jpg
cat 2.jpg
dog 1.jpg
dog 2.jpg
dog with toy 1.jpg
dog with toy 2.jpg

Is that possible?


15/05-20 09:23 - edited 15/05-20 19:33
#2 : 15/05-20 10:24
David Lee
David Lee
Posts: 447
You should try for yourself before asking for help! The name collision rule does exactly what you are asking - apart from zero-padding the added numbers to 3-digits.

You can remove the leading zeros in a second pass using the Renumber method.

The User Guide is no longer quite correct - ALL instances of a colliding name are decorated. The User Guide still states that the first instance will be left unchanged.


15/05-20 10:24
#3 : 15/05-20 19:21
capoeira
capoeira
Posts: 3
Reply to #2:

I've tried with both Regex and script, but I'm not proficient on the last one. Maybe I've explained myself wrong: all instances of name collision are numbered, under ONE numbering sequence: so the collisions on my previous post would end up like this:

cat.jpg
cat 1.jpg
dog.jpg
dog 2.jpg
dog with toy.jpg
dog with toy 3.jpg

...instead of making a number sequence for each name pattern (e.g naming all the collisions of "dog.jpg" with it's own number sequence: dog.jpg, dog 2.jpg, dog 3.jpg, etc). I've tried, but specifiying a repeating name it's hell in regex, and I don't know how to make the script check for tha either.


15/05-20 19:21 - edited 15/05-20 19:32
#4 : 15/05-20 20:08
David Lee
David Lee
Posts: 447
Reply to #3:

When I try this the result is:

cat 001.jpg
cat 002.jpg
dog 001.jpg
dog 002.jpg
dog with toy 001.jpg
dog with toy 002.jpg

Are you using an old version of Advanced Renamer? Current version is 3.85


15/05-20 20:08
#5 : 15/05-20 20:32
capoeira
capoeira
Posts: 3
Reply to #4:
Yeah, that was it. Thanks David Lee, and sorry for the trouble


15/05-20 20:32