InDesign 定規の開始位置を変更する AppleScript
「2-1 本章の概要」99ページのコラムには2つのスクリプト(本文ではプログラムと記述されている)が書かれている。
- 作者: (株)シータス,古籏一浩
- 出版社/メーカー: 技術評論社
- 発売日: 2008/11/25
- メディア: 大型本
- 購入: 5人 クリック: 91回
- この商品を含むブログ (8件) を見る
- 定規の開始位置を「ページ」にする
- 定規の開始位置を「スプレッド」にする
これを書く前に、まずは「定規の開始位置を確認する」AppleScriptを書く。
--定規の開始位置を確認する tell application "Adobe InDesign CS6" ruler origin of view preferences of active document end tell --定規の開始位置をダイアログで確認する tell application "Adobe InDesign CS6" --display dialog ruler origin of view preferences of active document as string end tell --定規の開始位置をダイアログで確認する(ハンドラ) on getRulerOrigin() tell application "Adobe InDesign CS6" display dialog ruler origin of view preferences of active document as string end tell end getRulerOrigin
確認ができるようになったので、「定規の開始位置を変更」するスクリプトを書いてみる。
--定規の開始位置を「ページ」にする tell application "Adobe InDesign CS6" set ruler origin of view preferences of active document to page origin end tell getRulerOrigin()
--定規の開始位置を「スプレッド」にする tell application "Adobe InDesign CS6" set ruler origin of view preferences of active document to spread origin end tell getRulerOrigin()
めでたし、めでたし。
- OS X 10.8.5
- Adobe InDesign CS6, version: 8.0.2.413