色や線を設定する
set pt to 2.83464
tell application "Adobe Illustrator"
tell document 1
tell path item 1
set filled to false --塗りをなしにする
set fill color to {cyan:0, magenta:0, yellow:0, black:0}
--塗りを白にする
set stroked to true --線の設定をありにする
set stroke color to {cyan:0, magenta:100, yellow:50, black:0}
--線をM100Y50にする
set stroke width to 0.2 * pt
end tell
end tell
end tell
いっぺんに設定するにはset propertiesを使う
set pt to 2.83464
tell application "Adobe Illustrator"
tell document 1
tell path item 1
set properties to {filled:false, ¬
fill color:{cyan:0, magenta:0, yellow:0, black:0}, ¬
stroked:true, ¬
stroke color:{cyan:0, magenta:100, yellow:50, black:0}, ¬
stroke width:0.2 * pt}
end tell
end tell
end tell
ガイドにする
tell application "Adobe Illustrator"
tell document 1
set guides of path item 1 to true
end tell
end tell
コメントする