Answered
Creating Position for PointText frame in Illustrator
How to set the x and y position for the PointText frame using Script
How to set the x and y position for the PointText frame using Script
// First way, in relation to the position of the base line. (The left of the baseline by default, but can be changed to the centre or the right of the baseline, by changing the justification.)
var x = 10, y = -10; // example
var text1 = app.activeDocument.textFrames.pointText([x, y]);
text1.contents = "Lorem ipsum";
// text1.textRange.paragraphAttributes.justification = Justification.CENTER;
// Second way, in relation to the left top position of the text frame.
var text2 = app.activeDocument.textFrames.pointText([0, 0]);
text2.contents = "Lorem ipsum";
text2.position = [x, y];
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.