var tf=app.activeDocument.pages[0].textFrames[0]; var s=tf.paragraphs[0].underlineType; alert(s.index);