Skip to main content
Known Participant
July 4, 2024
Answered

Indesign projects

  • July 4, 2024
  • 1 reply
  • 377 views

I have a JSX script and I want to apply it to all open documents in InDesign because processing each project takes time and I want, when the script finishes with one project, to move on to processing other projects."

This topic has been closed for replies.
Correct answer m1b

> I have 3 documents in a folder, what should I do?

 

Well, the easiest would be to open them all at once and then run a script similar to the one I posted.

- Mark

1 reply

m1b
Community Expert
Community Expert
July 4, 2024

Often this is possible, by first collecting all the open documents (or getting documents from a folder), then looping over them, and running your script on each one. Are you a scripter? Do you know what I mean?

 

In simplest form:

var docs = app.documents;

for (var i = 0; i < docs.length; i++) {

   doSomething(docs[i]);

}

function doSomething(doc) {

 // your code here!

};

 - Mark

Known Participant
July 4, 2024

I have 3 documents in a folder, what should I do?

Robert at ID-Tasker
Legend
July 4, 2024
quote

I have 3 documents in a folder, what should I do?


By @aghanjar16430960

 

Either use @Peter Kahrel's tool - free/donate:

 

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

 

Or if you work on a PC - my ID-Tasker - not free.