开发者

Nested Keynote slides with Applescript

Is there a way to achieve this:

Nested Keynote slides with Applescript

when creating a presentation programatically via Applescript?

As an aside the code I have now looks like this:

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

For ideas about workarounds: My app will generate this code from a Markdown document, thus enabling writing your presentation in Markdown. I hoped that different levels of headings could mea different levels of nesting in the final output.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜