前のページ
Navigation
次のページ
make: Make a new element
新しいエレメントを作る。

必須
make
new type class --the class of the new element.
新しいエレメントのクラス
at location reference --the location at which to insert the element
エレメントを挿入するための位置
オプション
with data anything the initial data for the element
エレメントのための最初のデータ。
with properties record the initial values for the properties of the element
エレメントのプロパティ初期値
結果(戻り値)
reference to the new object(s)
新しいオブジェクト
サンプルスクリプト
property obj : {}
property pr : {}
tell application "Adobe Illustrator 9.0.2"

make new document
set obj to obj & {entire path:{{anchor:{0, 760.0}, left direction:{0, 780.0}, right direction:{0, 500}, point type:corner} ツ
, {anchor:{-94.0, 505.0}, left direction:{-94.0, 505.0}, right direction:{-94.0, 505.0}, point type:corner}}}
set obj to obj & {entire path:pr}
set obj to obj & {width:100} --
set obj to obj & {opacity:50.0}
set obj to obj & {position:{0, 500}}
set obj to obj & {closed:true}
set obj to obj & {filled:true}
set obj to obj & {fill color:{cyan:10, magenta:30, yellow:20, black:0}}
make new path item of layer 1 of document 1 with properties obj


end tell

用語集目次
Adobe_Illustrator_9.0目次
クラスマップ
ApppleScriptリンク
修正日 2001.5.30