In indesing script, I can find "abc text" with FindText method, and I want to insert a image here, but how can I get the insertionPoint(the FindText method return an object)? any help?
Thanks in advance.
gives (as expected) the horizontal position of the first occurrance of "the".
Note that findText returns an
of found items; its length may be 0 (not found), 1 (only found once), or any other number.
an array. Perhaps you expected it to be 'the' position of the found text -- it doesn't. It's an array of all insertion points in the found text.
'The' position of the text (in its parent text) is something like text.index ("The index of the Text in the collection or parent object.")