InDesign Script

Object Model Viewer

進入 InDesign => 編輯 Script => 功能表 Help => Object Model Viewer => 左上方選擇 Adobe InDesign

參考資源

字元樣式

雙行夾註

宇元樣式選項 => 旁注設定 => 旁注 行數:2

頁碼

find_page

InDesign Elements

Frame

框架符合選項 FrameFittingOption

  • 自動符合 autoFit
  • 裁切量 上 topCrop
  • 裁切量 下 bottomCrop
  • 裁切量 左 leftCrop
  • 裁切量 右 rightCrop

參考:〈InDesign 說明:處理框架與物件〉,〈InDesign Help: Working with frames and objects

Line break

可以控制雙行夾註在哪裡換行,例如:

my_story.insertionPoints.lastItem().contents = SpecialCharacters.forcedLineBreak;

Rectangle

指定大小要用 visibleBounds,跟 geometricBounds 有點誤差,參考〈Work Around the Width/Height Gap〉2009.10.17