var n=app.activeDocument.textFrames[0].paragraphs[0].paragraphAttributes.maximumConsecutiveHyphens; alert(n);