Skip navigation

Applescript to concatenate Keynote slides?

988 Views 6 Replies Latest reply: Apr 5, 2012 11:42 AM by Pierre L. RSS
Pocket Aces Calculating status...
Currently Being Moderated
Apr 2, 2012 10:00 AM

I'm trying to write an Applescript that will combine 2 keynote files into 1 keynote file, but not having much luck.

 

Also, the script would need to be run from the command-line, so unfortunately, using the GUI features like "click menu item..." won't work.

 

Can this be done?

 

Thank you for any insight / help you can give.

  • Camelot Level 8 Level 8 (45,670 points)
    Currently Being Moderated
    Apr 2, 2012 9:42 PM (in response to Pocket Aces)

    I'm not sure I understand the statement:

     

    Also, the script would need to be run from the command-line, so unfortunately, using the GUI features like "click menu item..." won't work.

     

    As far as I know there's no way to directly read the Keynote presentation files, so the only way this is ever going to work is by launching Keynote and having it to the heavy work. That doesn't necessarily mean UI scripting ('click menu...', etc.), but I haven't looked at Keynote's dictionary to check what is doable.

     

    In either case I don't think this can be done without a user logged in at a GUI interface, one way or another.

  • Pierre L. Level 4 Level 4 (3,860 points)
    Currently Being Moderated
    Apr 3, 2012 2:20 PM (in response to Pocket Aces)

    It's also possible to do something like this:

     

    tell application "Keynote"

        move slides of slideshow 1 to after last slide of slideshow 2

    end tell

     

    At first sight, that seems to work… as long as you don't close the second slideshow. I don't know Keynote very well and was unable to go further.


  • Pierre L. Level 4 Level 4 (3,860 points)
    Currently Being Moderated
    Apr 5, 2012 11:42 AM (in response to Pocket Aces)

    Bravo! And many thanks for the feedback.

Actions

More Like This

  • Retrieving data ...

Bookmarked By (1)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.