使用Applescript嵌套Keynote幻灯片

时间:2011-10-17 13:14:41

标签: applescript keynote

有没有办法实现这个目标:

nested slides

通过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

有关变通方法的想法:我的应用程序将从Markdown文档生成此代码,从而可以在Markdown中编写演示文稿。我希望不同级别的标题可以在最终输出中使用不同级别的嵌套。

0 个答案:

没有答案