var vp=app.viewPreferences; alert(vp.parent); var vp=app.activeDocument.viewPreferences; alert(vp.parent);