選択したオブジェクトがあるページのノンブルを取得


var frame = app.activeDocument.selection[0];
alert(frame.parent.name);