var s=app.activeDocument.objectStyles; alert(s[0].extractLabel("indd")); alert(s[0].extractLabel("InDesign"));