var c=app.activeDocument.pages[0].textFrames[0].characters; alert(c.length); c=app.activeDocument.pages[0].textFrames[0].parentStory.characters; alert(c.length);