I have a page item (text frame or text on path) that has been tagged (say tag named pp).
I need to determine if it is a text frame or text path using the xmlelement.
Can anyone guide how to do this?
I tried the following:
var items = doc.xmlElements[0].evaluateXPathExpression("//pp");
var story = items[0].parent.parentStory;
story.pageItems.item(0).allPageItems.item(0).constuctor.name // this should be textframe or textpath
But could not succed.
Kindly help!