【问题标题】:Override master page items in indesign with applscript用applescript覆盖indesign中的母版页项目
【发布时间】:2014-03-21 22:50:23
【问题描述】:

我正在运行一个将页面添加到文档的applescript,“覆盖所有母版页项目”然后将文本导入其中一个已发布的文本框。我发现的解决方案似乎不起作用,因为它们引用了活动页码

那么有可能做到这一点吗?

set theListOfFileNames to {"1", "2", 3", "4", "5", "5"}
set theTargetFolder to ((path to desktop folder) & "Catalogue") as string

repeat with theCurrentFileName in theListOfFileNames
      set theImportFile to theTargetFolder & ":text:" & theCurrentFileName & ".txt"
      tell application "Adobe InDesign CS3"
                     tell active document
   make page
   override (master page items) -- what to do here??
   -- then select any textbox on the page
       -- place theImportFile without showing options
   --end tell
  end tell
  save active document
end tell
end repeat

【问题讨论】:

    标签: applescript adobe-indesign


    【解决方案1】:

    在 CS6 中测试,应该在 CS3 中工作......

    tell application "Adobe InDesign CS6"
        tell active document
            set newpage to make page
            tell newpage
                --setting the next line to a variable will allow you to return the items that were affected --call it whatever you want.... It will be a single item if only one item or a list if multiple items on the page. 
                set theoverride to override (every item of master page items of newpage) destination page newpage
            end tell
        end tell
    end tell
    
    return theoverride  ---items of the page that were affected. You will need to reference the correct one and account for single/multiple items.
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-01-03
      • 1970-01-01
      • 2011-08-26
      • 1970-01-01
      • 2014-08-25
      • 2015-06-17
      相关资源
      最近更新 更多