0
我正在使用InDesign CS6。InDesign:試圖以腳本標籤爲目標...沒有骰子
我有一個嵌套在一個組內的表。該組使用InDesign的腳本標籤標記爲「slug」。我試圖將信息插入到該表的單元格中。
如果我以「組1」爲目標,我已經使用它而不使用標籤,但如果佈局中有其他組(如顯然不正常),則不起作用。
這是我的代碼。注意我在第7行鍼對組的失敗嘗試。任何想法?
tell application "Adobe InDesign CS6"
set myDoc to active document
set colorMode to blending space of transparency preferences of myDoc
set docBleed to document bleed top offset of document preferences of myDoc
set docWidth to page width of document preferences of myDoc
set docHeight to page height of document preferences of myDoc
set slugGroup to (group whose label is "slug")
tell table 1 of text frame 1 of slugGroup of myDoc
set contents of cell 1 of row 2 to colorMode
set contents of cell 2 of row 1 to docWidth & " x " & docHeight
set contents of cell 2 of row 2 to docBleed
end tell
end tell