Order of Text Frames
- This topic has 2 replies, 3 voices, and was last updated 6 years, 7 months ago by .
- You must be logged in to reply to this topic.
Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Order of Text Frames
Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Order of Text Frames
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.
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.
> 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.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies allows us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
To provide the best experiences, we and our partners use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us and our partners to process personal data such as browsing behavior or unique IDs on this site and show (non-) personalized ads. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Click below to consent to the above or make granular choices. Your choices will be applied to this site only. You can change your settings at any time, including withdrawing your consent, by using the toggles on the Cookie Policy, or by clicking on the manage consent button at the bottom of the screen.
You have to be logged in to save.
Not a member? Join Today - it's FREE!