1 person found this helpful
WHAT THE GUIDE SAYS: IT CAN BE DONEDoesn't say how, however.
The "InDesignCS4_ScriptingGuide_JS.pdf" explictly says:
While the following script fragment searches the entire document, you also can search stories, text frames, paragraphs, text columns,
or any other text object. The findText method and its parameters are the same for all text objects.
But I just can't find the way to reference the text elements in these pages for using the "findText()" method.
All of the mentioned DOM objects derive from Text. "Page", however, does NOT.
A single page can hold several text frames and/or several different stories. And you also cannot search through a selection of stories either.
However, since you can search through a textframe, perhaps you can make it work on a selection of text frames (I don't think so, as it seems to contradict what I know so far, but you can always try).
Thx for answering, Jongware. Sorry for not coming to you before.
Look, it took me a while to solve this issue. It had some stuff related to the CS-SDK itself, as well as with the InDesign DOM, so I posted another question in the Creative Suite SDK forum.
For those interested, my approach to solving it (thanks to Jongware and Ten A for the help) is in this post:
Thanks to all.
*PS. Any comments are welcome.