var a=app.activeDocument.textFrames[0].pageItems; alert(a[0].anchoredObjectSettings.verticalAlignment);