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