Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Is there a way to batch Export mulitple INDD files to IDML across a drive?

Participant ,
Oct 30, 2025 Oct 30, 2025

...or a Mac script? Rather than open up every file and Export as........? Affinity 3 is out and free.

TOPICS
Feature request , Import and export , Scripting
227
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 30, 2025 Oct 30, 2025

Have a look at the Batch Exporter script: 

 

https://creativepro.com/files/kahrel/indesign/batch_convert.html

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 30, 2025 Oct 30, 2025
quote

Affinity 3 is out and free.


By @Howard_F

 

If your point is that you want to batch-convert to IDML in order to move to Affinity:

 

Just keep in mind that you won't be able to seek scripts or other automation solutions for Affinity as it's not currently scriptable or otherwise extendable. (Photo and Designer do have some minimal automation options which still don't come even close to what Adobe offers, while Publisher has none).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Oct 31, 2025 Oct 31, 2025

Thank you to all for responses. Duly noted.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Oct 31, 2025 Oct 31, 2025

Batch processor script

Export to IDML — Exports InDesign markup (IDML) file to the same location as the InDesign document.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 10, 2025 Nov 10, 2025

I seem to be having trouble getting this script tp work. Initially it did convert a few files but not many. Now I get this error message. Mac 15.6.1 and Indesign 2026, 21.. What should I be looking for in the log?

 

Screenshot 2025-11-10 at 15.18.54.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Nov 11, 2025 Nov 11, 2025

I don't have InDesign 2026 so can't test it: maybe something has changed  in this version preventing the script from working properly.
Did/Does it work in previous versions 2025/2024?

If so, try to run it using an older API by creating a version specific sub-folder in the Scripts Panel, for example:
Scripts Panel > Version 20.0 Scripts
and moving the batch processor there.
Another guess is maybe something went wrong with particular file(s).

Probably you attempted to process a mix of files — native 2026 and older (converted) — thus some were processed and some failed.

I see the error happens on line 266 while the batch processor thies to execute the doScript command to trigger export_to_idml.jsx. But I need  to dubug it to figure out what goes wrong.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 11, 2025 Nov 11, 2025

Thank you Kasyan. Just to be sure before I try your suggestions, the path I used to install was ..... InDesign 2026/Scripts/Scripts Panel/Samples/Javascript

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Nov 12, 2025 Nov 12, 2025

This path will work, though the 'Samples' forder is supposed for example scripts. (In my opinion, the term 'Samples' is inapropriate in this context.)
I suggest you to create this folder:

... InDesign 2026/Scripts/Scripts Panel/Version 20.0 Scripts

and run the batch processor from there.

This should execute it, as if you're in InDesign 2025.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 12, 2025 Nov 12, 2025

Yes, thank you. Unfortunately that didn't work either InDesign 2025 or 2026. Just to reiterate it worked initially in 2026 and the message was I think 138 docs exported (or words to that effect) but only 3 or 4 were visible in Finder. Thank you for your responses and solutions.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 14, 2025 Nov 14, 2025
LATEST

Line 266 -  app.doScript(g.scriptFile, scriptLanguage, g.arguments, UndoModes.ENTIRE_SCRIPT, "\"" + g.scriptName + "\" Script");

Anyone know Javascript?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines