Skip to main content
dublove
Legend
May 20, 2025
Answered

There is a numberAdjuster.jsx request: for a range of page numbers.

  • May 20, 2025
  • 1 reply
  • 498 views

Hi Steven Wareham.
Are you here?

https://github.com/stevenwareham/numberAdjuster/blob/master/number_adjuster_1_2.jsx 

 

This script is mainly for catalogs, and can do calculations for all numbers in a selection.
At this point the numbers are sorted by size.

But now that I have an index, the size order of these numbers is disrupted.
Such as:
Because of the page count adjustment, the page numbers have been reduced by 1 page from 119.
This reduces all page numbers greater than 119 by 1.
And these pages may be distributed throughout the text box, they are unordered.

So, the request is to add another condition, something like this: \d+>119

Thank you very much.

Correct answer dublove

Nw, that you've spaces - the other script should work.

 


I remembered that I should use ~(

1 reply

dublove
dubloveAuthor
Legend
May 20, 2025

Wow, turns out I'm never alone in my thoughts ......
Is it possible to merge them into the Steven Wareham code?
Much appreciated.

Robert at ID-Tasker
Legend
May 20, 2025

But you've an index? 

 

Can you post some screenshots of what you have?