kdoc - AppleScript with Adobe製品

  • 作成日:2012-02-20 10:46:05
  • 修正日:2012-02-20 12:05:29

InDesign

↑ページトップへ

-- アクティブページの設定
set active page to (page 1 of active document)
-- 表示の設定
set view display setting to typical
-- 拡大/縮小フィット
zoom given fit spread
-- ユーザ操作禁止 → 警告ダイアログ出さない
set user interaction level of script preferences to never interact
-- ユーザ操作受け付ける
set user interaction level of script preferences to interact with all
-- ドキュメント作成
set _doc to make document
tell _doc
    set doc_pref to document preferences
    tell doc_pref
        set pages per document to 4
        set facing pages to true -- 見開き
        set page width to "210 mm"
        set page height to "297 mm"
        set page binding to right to left -- 右綴じ
    end tell
end tell