Answered
rob dayCorrect answer
Community Expert
Nov 15, 2026 8:13 PM UTC
A story has an overflows property, so:
var st = app.activeDocument.selection[0].parent;
alert("Selected story oveflows: " + st.overflows)

Your sample has an anchored image. If there was an anchored text frame in the story then there would be more than 0 text frames:
var st = app.activeDocument.selection[0].parentStory.textFrames;
alert(st.length + " Text Frames")


