David,
When I read this:
“My nature of work is in a way that I tend to avoid scripts, concerning people who will work on this project after me get in trouble in case future Adobe updates break the code.” [Kasra’s post above]
and his new answer:
“I think I’ve found a not-so-elegant way to fix this: …”,
not mentioning Peter Kahrel uses this way to do it by script, I’m tented to answer that Kasra is only not interested by a “paid” script!
… But if somebody gives him a for free script, he’ll take it! … Of course!
Even if Peter’s approach is not totally explained according to me, he’s totally and definitely right! You too! ;-)
In this way, as each article is a separate file, the use of the “famous” DOI as file name could be the key.
Knowing that, a script could, playing with the “book”, already mentioned by Kasra:
0/ keep the page numbering per each doc as 1,2,3,4 … [simple, nothing to do!]
1/ create a “list” of the DOIs. [simple to be scripted]
2/ open each doc and update a personalized variable corresponding to the current page number naming as: DOI-1, DOI-2, DOI-3, DOI-4 … [+ save it] [simple to be scripted — could be done separately outside the main script]
3/ temporary include a prefix section for each doc, as indicated. [simple to be scripted]
4/ update the book TOC/INDEX including these temp prefix sections. [+ save the TOC/INDEX files] [simple to be scripted]
5/ replace each temp prefix section by the corresponding DOI. [simple to be scripted]
6/ remove these temp prefix sections [closing each doc without saving] [simple to be scripted]
… So, a simple loop simple to be scripted and finally just 1 click to play!
Personally, I’m not interested to write such a simple but professional solution for free! [I’m going to write it for a client]
… But I gave you the scenario for free! [to be mentioned!]
Best,
Michel, from FRIdNGE
michel.allio.fridnge@gmail.com