resize, proportionally from the center, text object 1 depending on the content of text objet2
Hello everyone,
i'm making a script to resize, proportionally from the center, a text object depending on the content of another text object.
This is what i made so far
var text1 = activeDocument.textFrames.getByName("TEXT1");
var text2 = activeDocument.textFrames.getByName("TEXT2");
if (text2.contents == "caseA") {
text1.resize(10, 10, AnchorPoint.MIDDLE_CENTER);
}
It looks like "AnchorPoint" it's not known, it's not the right way.
Does anyone know what's teh correct way to do it?
Cheers!

