Order of Text Frames

Viewing 2 reply threads
  • Author
    Posts
    • #97075

      Hi there…

      I am trying to update the contents of All the text frames in my InDesign file, using JavaScript.

      In what sequence js reaches each text frame? I ask this question because it seems it selects the text frames in any order, randomly. How to force js to select based on the location of the frames?

      Thank you in advance.

    • #97078

      I believe it follows the order in which the frames were created; at least this is how find/change works. I assume that each frame is named somewhere in the DOM to indicate this order.

    • #97129
      Peter Kahrel
      Participant

      > In what sequence js reaches each text frame?

      In what way ‘next’? If you mean the next threaded frame, then nextTextFrame returns a frame’s next frame:

      frame = myTextFrame.nextTextFrame;

      With unthreaded frames, as Lindsey mentions, their indexes reflect the order of creation.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.
>