rectangleを作成
tell application "Adobe Illustrator" tell document 1 make new rectangle at beginning with properties ¬ {bounds:{0, 200, 200, 50}, fill color:{cyan:100, magenta:100, yellow:0, black:0}} end tell end tell
text frameを作成(ポイントテキストとエリアテキスト)
tell application "Adobe Illustrator" tell document 1 --ポイントテキスト make new text frame at beginning with properties ¬ {position:{0, 200}, contents:"あいうえお"} --エリアテキスト make new text frame at beginning with properties¬ {geometric bounds:{100, 90, 160, 180}, contents:"かきくけこ", kind:area text} end tell end tell
path itemを作成(entire pathで線の両端の座標を指定する。)
tell application "Adobe Illustrator" tell document 1 make new path item at end with properties ¬ {stroke color:{cyan:C, magenta:M, yellow:Y, black:K}, ¬ stroke width:W, entire path:{{class:path point info, anchor:{X1, Y1}}, ¬ {class:path point info, anchor:{X2, y2}}}} end tell end tell
コメントする