I believe that this will give you all the anchored text frames in the frontmost document:
in an array. To filter out those that are not actually inline (i.e., use a different kind of anchoring), you'll need to look at the
of each item in the array. If that returns AnchorPosition.inlinePosition then you have an inline text frame.