var p=app.activeDocument.pages[0].textFrames[0].paragraphs; var pp=p.previousItem(p[2]); alert(pp.contents);