Applescript用户交互

时间:2019-06-25 13:42:56

标签: applescript adobe-indesign

我正在寻找一段Applescript,要求用户在InDesign中选择特定的框架,然后将其内容复制到另一个文档中。 我用它在脚本中创建一个新的结构化文档。

我制作了一个脚本,要求用户选择一个框架

    display dialog "Selecteer kop" buttons {"OK", "Nee", "Cancel"} default button "OK"
        if button returned of result is "OK" then
            if class of item 1 of selection is in {rectangle, oval, polygon} then

问题是当我运行此部分时,无法在InDesign中选择框架,然后继续执行脚本。

1 个答案:

答案 0 :(得分:1)

在一系列操作中,不要要求用户在显示对话框后选择一个页面项,而是让用户选择该页面项,然后在显示对话框之前检查上下文。