Hi, I am new to illustrator and I want to align the textFrame centered to the pathItem(square) using Extendscript as shown in picture1. I have uploaded another picture, which shows the layer and group of these objects. Actually, all these squares and textFrames in one group. let me know how can i want to align them horizontally centered according to each other.
I want to align this green square and textFrame(TEST)'s midpoints horizontally.
Thanks in advance!