app.activeDocument.activeLayer.textItem.justification=Justification.CENTERJUSTIFIED; var n=app.activeDocument.activeLayer.textItem.desiredGlyphScaling; alert(n);