带Applescript的嵌套注释记号幻灯片

带Applescript的嵌套注释记号幻灯片,applescript,keynote,Applescript,Keynote,有没有办法做到这一点: 通过Applescript以编程方式创建演示文稿时 另外,我现在的代码如下所示: tell application "Keynote" set themeprops to {theme:"Gradient", slideSize:{800, 600}} set s to make new slideshow at end of slideshows with data themeprops repeat with content in {"a",

有没有办法做到这一点:

通过Applescript以编程方式创建演示文稿时

另外,我现在的代码如下所示:

tell application "Keynote"
    set themeprops to {theme:"Gradient", slideSize:{800, 600}}
    set s to make new slideshow at end of slideshows with data themeprops
    repeat with content in {"a", "b", "c", "d"}
        tell s
            set titleMaster to item 7 of master slides -- using magic number :(
            set newslide to make new slide
            tell current slide
                set title to content
                set master to titleMaster
            end tell
        end tell
    end repeat
end tell

关于解决办法的想法:我的应用程序将从降价文档生成此代码,从而使您能够在降价中编写演示文稿。我希望不同级别的标题可以表示最终输出中不同级别的嵌套。

我已经检查过了,元素“slides”似乎没有设置其父幻灯片的属性。所以applescript技术上不会让你这么做。一个潜在的解决方法是创建一个模板,然后用applescript打开该模板。它肯定没有公开的模板,我想知道一些未发布的属性或一些非常聪明的解决方法。事实上,我现在在apple.stackexchange上有一个。我已经检查过了,元素“slides”似乎没有设置其父幻灯片的属性。所以applescript技术上不会让你这么做。一个可能的解决方法是创建一个模板,并用applescript打开该模板。它肯定没有公开,我想知道一些未发布的属性或一些非常聪明的解决方法。实际上,我现在在apple.stackexchange上有一个。