Indesign script - How to get first paragraph in threaded text frame
问题 I have a book with text frames on each page , they are all threaded together, I want to grab hold of each text frames first paragraph, is there any way, I'm trying app.activeDocument.textFrames[0].paragraphs.length and returns "0", only parentStory.paragraphs.length returns the paragraphs but I can't know which are the first in a text frame, any help? 回答1: You should be able to use the textContainers attribute of Story to get each TextFrame of a story. var frames = story.textContainers; //