I need to change all text in all the stories in an indd file from "Adobe Paragraph Composer" to "Adobe World-ready Paragraph Composer".

Can it be done through UI or I have to use scripts. In the latter case, how do you set scope to all stories and change the paragraph composer?

1 Answer 1


I think it is not possible to select all stories at once with the UI. You will have to iterate through all paragraphs in all textframes in all stories or the selected story. Should be something like (not tested):

edit: remove textframes as suggested by Jongware

for (var s = 0; app.documents[0].stories.length; s++) {
    for (var p = 0; p < app.documents[0].stories[s].paragraphs.length; p++) {
      app.documents[0].stories[s].paragraphs[p].composer = "Adobe World-ready Paragraph Composer";
  • Gives error saying "Invalid value set for property 'composer'. Expected String, but received "Adobe World-ready Paragraph Composer". Feb 6, 2016 at 14:28
  • Are you in a different language? Try setting a composer, then select some text and run this code $.writeln(app.activeDocument.selection[0].paragraphs[0].composer) Feb 6, 2016 at 14:45
  • I'm on Win 7 using ExtendScript. When I execute this line from the inDesign's inbuilt script editor, the line is highlighted in orange and below it says 'undefined is not an object'. Feb 6, 2016 at 21:55
  • Did you change the target application ? It's the drop down in the upper left corner Feb 7, 2016 at 9:14
  • When I changed it to inDesign CS6 in the dropdown box it seemed to run but didn't change anything. The selected paragraph is still in "Adobe Paragraph composer" Feb 9, 2016 at 7:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.