Hello @adam_2770
I hope you're doing well. We apologize for the delayed response and the trouble.
Please ensure you have the latest version of Acrobat installed on the machine: 25.001.20997. Planned update: December 9, 2025. Check for any pending updates by navigating to Menu > Help> Check for Updates. Install the updates, restart the app and the machine, and try again.
Suggestions:
Sequential rename (1.pdf, 2.pdf, 3.pdf …)
Use this when you want predictable numbering independent of the original file names.
// Action Wizard > Execute JavaScript
(function () {
app.beginPriv();
try {
// Persistent counter across sessions/runs
if (typeof global.seqCounter === "undefined") {
global.seqCounter = 1;
global.setPersistent("seqCounter", true);
}
// Current document's folder (this.path is URL-style)
var cFolder = this.path.replace(/[^\/]+$/, ""); // keep trailing /
// Build new name: "1.pdf", "2.pdf", ...
var cNewName = global.seqCounter + ".pdf";
var cNewPath = cFolder + cNewName;
// Save under the new name
this.saveAs(cNewPath);
// Increment for the next file in the batch
global.seqCounter++;
} catch (e) {
app.alert("Post-export rename failed:\n" + e);
} finally {
app.endPriv();
}
})();
If you want numbering to restart for every Action run, add this small “reset” script as the first step in your Action:
(function () {
app.beginPriv();
try {
global.seqCounter = 1;
global.setPersistent("seqCounter", true);
} catch (e) {}
finally { app.endPriv(); }
})();
Please note that these are sample codes and may not function as intended. You may need to customize it according to your requirements and environment.
How to add this to your Action
All Tools > Action Wizard > Create New Action Add your Merge/Combine or Export steps as usual. Click More Tools > Execute JavaScript > Add. Paste Option 1 or Option 2. (Optional) Add the reset counter script as the first step if you want numbering to start from 1 each run. Save and run the Action on your batch.
Thanks,
Anand Sri.
[Edited Response]
... View more