I have severeal photos that I want to clone and add a text layer on the clone. I want to position, size and define the text.
I’m having trouble positioning the text into the lower third of the frame. The position property of the text object doesn’t seem to be defined. I don’t understand how it works.
set artLayerRef to make new art layer of current document with properties {kind:text layer}
set textItemRef to text object of artLayerRef
set font of textItemRef to "Arial"
set size of textItemRef to 11
set stroke color of textItemRef to {class:RGB color, red:255, green:0, blue:0}
set type units of settings to pixel units
--the position is x, y - measured from the top left of the document
set position of contents of textItemRef to {3035, 2290}
set contents of contents of textItemRef to "Here's some text"
Is there a way to globalize these settings for the duration of the script?
I have a script that will be adding text to many images through the duration of the script. I always want the same font, font size, and font color, throughout. Is there a way to not have to issue these commands each time I add the new text layer?