rename adding sequential number

General discussion related to "Everything".
Post Reply
rmerchant
Posts: 5
Joined: Thu Sep 22, 2016 10:48 pm

rename adding sequential number

Post by rmerchant »

Seems like a simple question that must have been asked before but I can't find it.

I want to rename a pile of files to a name with a sequential number added. These are a whole pile of monthy PDF statements - they should all have the same name rather than a one I've dreamed up multiple times over the years.

Can that be done?
therube
Posts: 4977
Joined: Thu Sep 03, 2009 6:48 pm

Re: rename adding sequential number

Post by therube »

(I'm looking at the Everything 1.5 alpha version. IOW I'm not certain that the 1.4 version has the same feature, but take a look.)


(Multi-file) Rename (Shift+F2)
Uncheck 'Regular expressions'

New format:, in the selection box, #number:, will give you a sequential number.

---

Experiment, test - first, so you understand what is going to happen & that you're comfortable with the way it works.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: rename adding sequential number

Post by NotNull »

A bit more background/detail:

That #number: is a feature of Everything.1.5, not available in version 1.4.

Example, with added (number) where number has 3 digits:

Code: Select all

Old Format:  %1.test
New Format: %1 (#text:<#number:,000>).test
For more optioms, press the little triangles on the right


2021-05-13 21_08_39-Window.png
2021-05-13 21_08_39-Window.png (12.31 KiB) Viewed 10283 times
rmerchant
Posts: 5
Joined: Thu Sep 22, 2016 10:48 pm

Re: rename adding sequential number

Post by rmerchant »

What am I missing?
I copy everyhting (except put in a new name) and I get the result in the scrrenshot: the #number is not replaced by a number....

And I don't have an option for v1.5: the one I have is 1.4.1.1005 and I don't see a newer one on the website...

-
Screen Shot 05-13-21 at 06.19 PM.PNG
Screen Shot 05-13-21 at 06.19 PM.PNG (27.14 KiB) Viewed 10272 times
void
Developer
Posts: 16745
Joined: Fri Oct 16, 2009 11:31 pm

Re: rename adding sequential number

Post by void »

Everything 1.5 alpha

Click the ▸ button to the right of New Format to find preprocessor syntax help.
rmerchant
Posts: 5
Joined: Thu Sep 22, 2016 10:48 pm

Re: rename adding sequential number

Post by rmerchant »

OK. I downloaded the 1.5 alpha and now the renumbering algorithm appears to work.

However the .pdf was changed into something very interesting: BMA Telus invoice(122).p4294967295f - despite the file command not showing that odd renaming...

Redoing the naming operation with those oddly names individuals selected and choosing a pdf extension then worked. ? feature or ? bug.

I have to say the arrowhead did not lead me to understanding the syntax - I just copied from the examples provided, I'm afraid...

Thanks Richard

I'll keep trying onwards with 1.5 alpha. I am up for an adventure.
void
Developer
Posts: 16745
Joined: Fri Oct 16, 2009 11:31 pm

Re: rename adding sequential number

Post by void »

Renaming can be undone from Edit -> Undo.

It might be a bug. I will investigate..
It can be caused by the missing > from your screenshot.

I will add some preprocessor examples to help with understanding the syntax.
00linlinfa
Posts: 2
Joined: Thu Nov 21, 2024 4:19 pm

Re: rename adding sequential number

Post by 00linlinfa »

Snipaste_2024-11-22_00-36-41.jpg
Snipaste_2024-11-22_00-36-41.jpg (84.72 KiB) Viewed 75 times
The problem still exists.
Did I make a mistake somewhere?
everything Version 1.5.0.1383a (x64)
Last edited by 00linlinfa on Thu Nov 21, 2024 4:40 pm, edited 1 time in total.
void
Developer
Posts: 16745
Joined: Fri Oct 16, 2009 11:31 pm

Re: rename adding sequential number

Post by void »

Please try the following text in your new format:

<text:$number:,"000">


-or-

$number000:


<text:...>
$number000:
Preprocessor
Advanced Rename
00linlinfa
Posts: 2
Joined: Thu Nov 21, 2024 4:19 pm

Re: rename adding sequential number

Post by 00linlinfa »

Thank you so much, the problem is solved, great
Post Reply