Copy link to clipboard
Copied
var txlayerRef = app.activeDocument.artLayers.add()
txlayerRef.kind = LayerKind.TEXT;
txlayerRef.name = "info";
var myTextRef = txlayerRef.textItem;
myTextRef.contents = "*Do what you want\r*till the end";
myTextRef.font = "Arial";
myTextRef.AnchorPosition = "MIDDLECENTER";
myTextRef.size = 10;Within photoshop script, How can I align text to right side?
Can't find reference from "photoshop-javascript-ref-2020"..
Hi @curtis.Y
You mean justification, if yes then add following line of code in your's code
myTextRef.justification = Justification.RIGHT;
Copy link to clipboard
Copied
Hi @curtis.Y
You mean justification, if yes then add following line of code in your's code
myTextRef.justification = Justification.RIGHT;
Copy link to clipboard
Copied
Align is the correct typographic term. The masses, including graphics software devs who should know better, simply use justification to mean align.
Copy link to clipboard
Copied
Actually, I believe justification is the correct term, as there is right, center, left, and full justification. I don't think there is a full alignment.
Copy link to clipboard
Copied
Not according to this former compositor. :]
There is left, right or centre alignment (range), with justification having the same alignment/range for the short last line in a paragraph.
Copy link to clipboard
Copied
Hi!
I would side with Stephen, there's L/C/R align, or justified.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more