Rename files to invert the filename-numbering

Hi there,

I found quite some good renaming scripts, but at first sight nothing posted so far solves the problem I face...

Filenames:

91690001.jpg, 91690002.jpg, ... , 91690024.jpg

91690001.jpg is actually the last shot in that sequence of pictures, 91690024.jpg the first one (my camera start to expose the last frame on a film roll, so scanning the negatives leads to an inverted numbering).

Worse: Some files are numered like 022_19A.jpg and 022_19B.jpg.
To make things even more complicated some files might numbered 022_19A.jpg and 023_19B.jpg.

I need a solution that renames the files to invert the sequence of the filenames. Appreciate any help with this.

Thanks & greetings from Germany
Matthias

[quote="Matthias"]Hi there,

I found quite some good renaming scripts, but at first sight nothing posted so far solves the problem I face...

Filenames:

91690001.jpg, 91690002.jpg, ... , 91690024.jpg

91690001.jpg is actually the last shot in that sequence of pictures, 91690024.jpg the first one (my camera start to expose the last frame on a film roll, so scanning the negatives leads to an inverted numbering).

Worse: Some files are numered like 022_19A.jpg and 022_19B.jpg.
To make things even more complicated some files might numbered 022_19A.jpg and 023_19B.jpg.

I need a solution that renames the files to invert the sequence of the filenames. Appreciate any help with this.

Thanks & greetings from Germany
Matthias[/quote]

  1. Select your files and go to Rename window.

  2. Select the Number File preset.

  3. Change the New Name to [#]-\1.\2.

  4. Click on Original Name title in Preview win for reversing your file names.

  5. Click on OK

Either I just don't do it as I am supposed to, or it doesn't work :frowning:

I tried it with a sequence from 91690001.jpg to 91690037.jpg

Changing New Name to [#]-\1.\2. will only rename 91690001.jpg to 0001-9160001.jpg instead of renaming it to 91690037.jpg.

Any other ideas or a hint on what I might be doing wrong?

Rename first file by last file name, second by penultimate...
I don't think that is possible without vbscript.

Do you just want the files numbered in increasing (or decreasing) order, with arbitrary numbers, or do you want particular numbers used for the files?

No particular numbering is required. Also renaming "the first file by last file name, second by penultimate...", as AlbatorV said, is not necessary (if it is not feasible).

However after the renaming the "sortation" of the files needs to be inverted (1st = last, 2nd = 2nd last... etc.).

Opus will number the files in the order they appeared in the lister when you clicked the Rename button.

So, if you reverse-sort by Name (i.e. click the Name column one or twice to make the files appear in reverse order) and then open the Rename dialog and use the Number File preset then you should get them numbered in reverse order.

[quote="Matthias"]Either I just don't do it as I am supposed to, or it doesn't work :frowning:

I tried it with a sequence from 91690001.jpg to 91690037.jpg

Changing New Name to [#]-\1.\2. will only rename 91690001.jpg to 0001-9160001.jpg instead of renaming it to 91690037.jpg.

Any other ideas or a hint on what I might be doing wrong?[/quote]

I'm sorry, one step was missed by me :blush: Before selecting Rename key in step 1, click on the lister Name title for reversing your files.

Again, Leo was faster than me :laughing:

I never would have thought that reversing the order in a lister will affect what happens in the rename-tool...

Thanks a lot for the hint: It works! (Helpdesk-Ticket closed :wink: