作成する(ミリ単位で指定できる。)
tell application "Adobe InDesign CS2_J"
make document with properties {page height:297, page width:210}
end tell
作成する2プロパティも同時設定
tell application "Adobe InDesign CS2_J"
set myDocument to make document
--ドキュメントを作成(作成されたドキュメントは変数myDocumentに入る)
set properties of document preferences of myDocument to ¬
{pages per document:10, pages per spread:1, ¬
page width:"210 mm", page height:"297 mm"}
--プロパティの設定。document preferencesを使う。
--pages per document ドキュメントのページ数
--pages per spread スプレッド当たりのページ数(2なら見開き)
end tell
保存せずに閉じる(Illustratorと同じ)
tell application "Adobe InDesign CS2_J" close document 1 saving no end tell保存する
set Fpath to "macintosh HD:test.indd" tell application "Adobe InDesign CS2_J" save document 1 to Fpath end tell
コメントする