2

有没有办法实现这一点:

嵌套幻灯片

通过 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 中编写您的演示文稿。我希望不同级别的标题可以在最终输出中表示不同级别的嵌套。

4

0 回答 0