Hi @Kasyan Servetsky , batch processor 4.8 doesn't work for me (error log attached if intested). I think I might have figured out the reason of the indd duplication. The InDesign files in the test folder were created some time ago, using different versions between 2022 to 2024 of InDesign. When they are re-written, an extra '.indd' appear on the filenames. However, when I re-saved the docs to the latest InDesign (2025) today, your script works perfectly, the files are overwritten with your script with no extra files .indd.indd extension in the folder.
With over 500+ docs to amend, a lot of them were last saved in previous versions of InDesign, what's the best way to go about this? Another script to convert files to the current version first? Or use 'batch rename' function in Bridge afterwards (this will mean manually moving older versions around and this action will need to be repeated in many folders/subfolders, my worry is it's more likely to have human errors if we do this)? Another thing is, my workmates may be using different versions of InDesign, and we upgrade InDesign in different times, so to restrict indd version we use in the script may be a challenge? As I expect we'll run this exercise from time to time now, and it will be done by different people.
No ESTK / VS Code installed.
No 3rd party plug-in is used.
I have attached the files for you to check/test:
- batch processor 4.8 log
- ABC_banner.indd (last saved in older InDesign version - when runs with 'batch processor 5.0' and 'add metadata', it creates a new files with .indd.indd)
- ABC regulations.indd (last saved in latest InDesign 20.0.1 - works fine with the script and no extra file being created)
Your advice and insights will be much appreciated! Thank you very much.
You discovered a bug in the script (Thank you!), and I fixed it. Here’s a new version.
Version 5.0 ‘thought’ it was an IDML file (not saved file yet), so it added the superfluous extension. This version adds it only if it is missing and explicitly writes into the log if the file is converted from IDML/an older version.

Does it work for you now properly?