Skip to main content
December 2, 2008
Question

Find to end of document or story

  • December 2, 2008
  • 11 replies
  • 1377 views
Is there a way to limit the find text so that it only goes to the end of the document or story?

When the cursor is planted in text the find dialog has a "To End of Story" option but I don't see any thing equivalent in the scripting. Of course, finding this stuff hasn't been by InDesign scripting forte.

Thanks,
Ken
This topic has been closed for replies.

11 replies

Known Participant
December 2, 2008
Hi Ken,

If you have a cursor in text, you can use item by range to get a single text object from that point to the end of the story. Then tell that object to do the find/change operation. How, exactly, you do that depends on the scripting language you're using.

Thanks,

Ole