inDesign CC:使用脚本将带有主扩展的页面添加到文档中

问题描述 投票:0回答:1

我是使用inDesign进行编码的新手,我对如何实现这一点感到茫然......基本上我需要生成50多个小册子范围表。这是一个使用.csv文件合并数据对产品进行编目的文档。

我需要节省时间的是一个脚本,然后插入足够的页面(向上舍入到最接近的4)并将Master-A和Master-B点差分配给封面和倒数第二页。

有人可以指出我正确的方向吗?

adobe adobe-indesign generate
1个回答
0
投票

这是一款AppleScript,可以帮助您入门

tell application "Adobe InDesign CC 2019"
    tell document 1
        repeat until (count of pages) is 8
            make pages
        end repeat
        set applied master of pages to (item 1 of (master spreads whose name prefix is "A"))
        set applied master of page 1 to (item 1 of (master spreads whose name prefix is "B"))
        set applied master of page -1 to (item 1 of (master spreads whose name prefix is "B"))
    end tell
end tell
© www.soinside.com 2019 - 2024. All rights reserved.