I'm writing a script that extracts the tagged texts of a document. It writes a separate file for each Text object.
Given that a Textframe can have more than one element in its Texts collection, i will have to go through some really
nasty workarounds, but so far this hasn't been the case. Does anyone know if it can ever be? And under what circumstances?
Thanks a lot in advance,
A text frame cannot have more than one element in its texts collection.
//Given a text frame "myTextFrame"...
var myText = myTextFrame.texts.item(0);
//...myText will always be all of the text in the frame.