I am having trouble figuring this one out. Take any paragraph and run this script. Why does myWordsLength != myAnchoredFrames?
myPar = app.selection.paragraphs;
var myWordsLength = myPar.words.length;
for(var x = myPar.words.length-1;x>=0;x--)
var myAnchoredFrames = myPar.textFrames.length;
What is interesting is that it is not the first anchored frame that is not recognized as part of the paragraph it is the last one. I am really baffled as to why this is.