var w=app.watermarkPreferences; alert(w.parent); var w=app.activeDocument.watermarkPreferences; alert(w.parent);