Applescript用户交互

Applescript用户交互,applescript,adobe-indesign,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

我正在寻找一段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

问题是,当我运行此部件时,我无法在设计帧中选择,然后继续执行脚本。

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

请花时间回来,让我们知道您迄今为止尝试了什么,以及它是如何无法满足期望的