i guess you're looking for :
content type (unassigned/graphic type/text type) : The type of content that a frame can contain.
Additionally, you might have to deal with the philosophical question "If a text frame contains no text at all, is it still a text frame?"
Well, the simplest way would be:
if (myFrame instanceof TextFrame) etc.
"Additionally, you might have to deal with the philosophical question
"If a text frame contains no text at all, is it still a text frame?""
And if you're going to deal with that, you'll have to watch out for the
very sticky issue of how to know whether an otherwise empty textframe
contains the continuation of a footnote or a table -- i.e., instances
where the parent insertion point is in the previous text frame.
I still haven't cracked that one!
Hi Hans ... this did the trick! Learning the idosyncracies of InDesign's AppleScript scripting library may take some getting used to.