var t=app.activeDocument.textFrames; var fx=t[0].contentTransparencySettings.bevelAndEmbossSettings; alert(fx.direction);