Applescript with Keynote

I'm trying to write an Applescript to export the images from a Keynote presentation using Keynote 6.0, which has now added that option. I can export a movie, a PDF, and every other type of format except for an image. Here's what I'm doing and it doesn't do anything, doesn't even give an error. Any suggestions?
tell application "Keynote"
     export front document to file "HD:Exported" as image with properties {compression factor:0.9, image format:PNG, export style:IndividualSlides, skipped slides:false, all stages:true }
end tell

If "HD:Exported" is intended to be a folder called Exported at the root of the disk you are booted into it should be: "/Exported".
It is usually better to put such things in User files or Desktops.

Similar Messages

  • I want to use applescript with keynote

    I recently purchased Keynote specifically because there is an applescript that purports to run a Keynote presentation and use text to speech to provide narration from the notes on each slide.  I found the script and some supporting materials on http://www.macosxautomation.com/applescript/selfpreso/index.html.  However, this was produced a few years ago and a few versions of applescript and Keynote ago.  So, I need to accomplish the same feat with the current versions of these products.
    But I'm having a great deal of difficulty finding references that tell me much about using applescript with Keynote.
    Can anyone help me out with this?

    If you create an account for him you can setup Parental Controls.
    iTunes: Using Parental Controls
    Create a new Apple ID here.
    https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/21/wo/mz0CVVrDn8QtH1s 3uYclhM/10.0.31.145.6.3

  • Using Automator/Applescript with Keynote?

    For a series of presentations I'm creating, on practically every slide, I have to delete a picture, then paste the replacement on the slide, resize that item, and reposition it on the slide (at the same location).
    This seemed like a perfect use for Automator, and I recorded my steps in Automator, but I ran into a couple of questions after that.
    1) When I'm in Keynote, I don't see a command to run a script.
    2) I'm looking at the automation that was created, and the workflow includes "Type 600 px into the text field." But I'm concerned that I don't see anywhere in the workflow that specifies what property is being edited at that point.
    Chuck

    Thanks chuck,
    I never thought to use Automator before but may give it a try now.
    I'm pretty new to AS so don't quote me, I know some apps have a File Menu command to run scripts but in general *** are run from the script menu on RHS of Menubar, perhaps you need to activate a pref for that I can'r remeber how I got mine there. Applescripts can be run with Keynote but have limited use. It seems to me there is no property dictionary for Keynote items.
    But i did find this snippet in somebody's applescript suggesting interaction via keyboard shortcuts is possible. Also controlling the slideshow is definitely support by the application dictionary.
    tell application “Keynote“
      activate
    end tell
    tell application “System Events“
      tell process “Keynote“
        keystroke “v“ using {command down}
      end tell
    end tell
    http://piyocast.com/as/archives/537

  • Applescript and Keynote: skipping old/un-skipping new?

    I manage digital signage for a university department. Last week, I wrote an Applescript that will examine the contents of two folders (an Incoming and a Current folder), check the filenames of slides inside for start and end dates, and move new/old slides to the Current folder and an Old Slides folder, respectively. For example, a file named "xxx-20141027-20141031-xxx.jpg" would have been moved into the Current folder this morning and will be moved into the Old Slides folder the morning of Nov. 1.
    I thought I could adapt this script to do the same thing with Keynote, having the "20141027-20141031" portion in the Presenters Notes instead. However, I'm having trouble figuring out how to get this to work exactly.
    to extractStartDate(slideNotes)
         set TempID to AppleScript's text item delimiters
         set AppleScript's text item delimiters to "-"
         set notesParse to every text item of slideNotes
         set returnStartDate to text item 1 of notesParse
         return returnStartDate
         set AppleScript's text item delimiters to TempID
    end extractStartDate
    **repeat for EndDate
    to date_format(old_date)
         set {year:y, month:m, day:d} to result
         set todayDate to (y*10000 + m*100 + d)
    end date_format
    set old_date to current date
    set todayDate to date_format(old_date)
    set currentSlideshow to "*filepath*"
    set slideCount to count of currentSlideshow
    tell application "Keynote"
         repeat with slide sc from 1 to slideCount
              tell slide sc
                   set notesData to the notes of it
                   if skipped is false then
                        set addDate to extractStartDate(notesData)
                        if addDate comes before todayDate then
                             set skipped to true
                        end if
                   else if skipped is true then
                        set removeDate to extractEndDate(notesData)
                        if removeDate comes before todayDate then
                             set skipped to false
                        end if
                   end if
              end tell
         end repeat
    end tell
    Also tried this instead of repeat loop:
         set skipped of (every slide where the extractStartDate(notes) comes before todayDate to false
         set skipped of (every slide where the extractEndDate(notes) comes before todayDate to true

    Hi,
    Try this, it work on the current document of Keynote '09'
    set old_date to current date
    set todayDate to date_format(old_date)
    tell application "Keynote" -- version 09
        tell front slideshow
            set tc to count slides
            repeat with i from 1 to tc
                tell slide i
                    set notesData to the notes of it
                    if not skipped then
                        set addDate to my extractDate(notesData, 1)
                        if addDate comes before todayDate then set skipped to true
                    else
                        set removeDate to my extractDate(notesData, 2)
                        if removeDate comes before todayDate then set skipped to false
                    end if
                end tell
            end repeat
        end tell
    end tell
    to extractDate(slideNotes, n)
        set TempID to AppleScript's text item delimiters
        set AppleScript's text item delimiters to "-"
        set returnStartDate to text item n of slideNotes
        set AppleScript's text item delimiters to TempID
        return returnStartDate
    end extractDate
    to date_format(old_date)
        set {year:y, month:m, day:d} to result
        return (y * 10000 + m * 100 + d)
    end date_format

  • Haven't been able to use pages for a while.  Keep getting following message.  Have tried reinstalling iWork, but no luck.  Same problems with Keynote and Numbers/Users/scottmcdonald/Desktop/Screen Shot 2012-03-14 at 9.39.52 PM.png

    Haven't been able to use pages for a while.  Keep getting following message.  Have tried reinstalling iWork, but no luck.  Same problems with Keynote and Numbers/

    Have you moved Pages from its installed location? Or just dragged a copy to your current system?
    It can't find some of its resources apparently.
    Peter

  • I am having a major problem saving with keynote 6.2.

    I recently bought a new MacBook which came with Keynote 6.2 preinstalled. I can make and save presentations in it fine. But when I later go to open those presentations with the exact same Keynote program I make them in, I get an error message saying I need a newer version of Keynote to open those files. I've double checked and my version of Keynote is fully updated, so I don't know what newer version it could be talking about. Can anyone explain how it's even possible to save in a file format that the program can't open? At the very least does anyone know how to change the default file format for saving?

    The 2 places I’ve seen recommended most to buy reliable RAM are below. I have purchased RAM several times from Other World Computing and have always been very satisfied with the product and service. OWC has also tested RAM sizes above Apples official limit.
    Crucial
    Other World Computing

  • Can I use a graphics tablet such as Wacom with Keynote?

    I would like to be able to use my Graphics tablet with Keynote to write on my slides while teaching. I am able to use the pen tablet with Powerpoint, I just select pen for pointer and pen color. How do I do this in Keynote?
    Thanks for your help,
    Jackk

    I don't think you can do that within Keynote itself. Is there anything useful in the Inkwell preferences? I have never used a tablet with a Mac before, but I think that Inkwell would have some kind of annotation feature.

  • Keynote remote app no longer working with keynote for ipad

    noticed after upgrading that the keynote remote does not pair with keynote for the ipad.  Any suggestion on a resolution or anyone else experiencing this issue?

    I didn't realize until I went to a class to lecture in front of a couple hundred students that what worked on Friday no longer worked on Monday.  (I upgraded to iOS 5 over the weekend.)  My iPad with lecture slides was plugged in 25 feet away.  I finally recruited a student to tap the iPad screen when I needed the next slide.  A nightmare.  What is usually slick and seamless was a wreck. 
    Here's my deal.  My remote app works fine at home where my iPod Touch and iPad are on the same wifi network.  At school they're on different networks for some reason.  Bluetooth doesn't work anywhere.  So Apple needs to find this bug and fix it.  I can't believe whoever is responsible for this didn't test this out before they released iOS 5.  Sheesh. 

  • Is two-sided printing possible with Keynote?

    The power point slides for one of my classes opens in keynote so I have to print from there but my question is, is it possible to print on both sides when using keynote? When I go to print, and then the printing options I can see a two-sided printing option but for some reason I'm unable to click on it. I don't think its because of the printer I'm using because I've printed on both sides using Microsoft word with my printer before. I just can't seem to do it with keynote.
    Should I just copy & paste to Pages to use two-sided printing?
    Message was edited by: AshesAshes

    I just checked any I can select two sided printing with my printer in Keynote, so I don't know why you wouldn't be able to if you have a printer that is capable of it.
    But instead of copy and paste, I would export it as a .pdf (Share>Export>pdf) and then you can try to print two sided in Preview and if that doesn't work, then add the .pdf files to Pages and print.

  • Corrupted files with Keynote 08

    Hi,
    I will try to be as clear as possible because the problem I have is potentially dangerous for any Keynote user. I have been a Keynote user for many years now and I use it systematically to make conferences and conventions. It's really fun to work with that software. But a problem has recently occured with the latest version.
    Like many independant workers, I use to work at my office and later at home. So I backup my files on a portable HD to finish them later. I use a backup program that saves that perfectly
    Many days ago, I wanted to reopen a keynote file at home when I realized that there was something wrong. When the file opened, it showed me the state of the file BEFORE the backup. First I thought I had forgotten to do the backup. But when I got back on the Finder, I saw that Quick Look showed me the most recent version of the file. More, with a right click on the file I opened the package and I saw all the images embeded in my keynote presentation. So I returned to Keynote and noticed somrthing really weird : the thumbnails show the right of the slides, but the slides themselves are wrong. I had no choice but to make the slides again and finally thought I had done something wrong. But the same thing occured today. And I am sure the backup has been done correctly.
    I have tried to save the document as another name to see what happens. When I do so the file is saved without the embeded images that were previously in the package. To resume, if your right file weighed 80 Mo with 50 Mo of images, when you save your corrupted file, it only weighs 30 Mo.
    There has been problems with Keynote in the past. Some images were "lost" after a backup but were present in the package. But this is REALLY a problem because you simply lose your work.
    i f any of you has an answer I would appreciate. And I hope I made myself clear, because even in French, it would have been hard to explain correctly.

    I have today encountered a problem opening old Keynote presentations on my new iMac running Leopard. It cannot open any of the old presentations on my machine because it says they are damaged.
    I also could not open an old Pages file because it says the file is corrupt and there was a .xml missing. I later managed to open this by searching for it directly through the application "Open" command and following the search path. It then gave the usual " This was created by a previous version of Pages..." and the Save as warning, but it did open when I went this route. (I have now saved this document as Pages 08 and all is well).
    There seems to be a bug in the iWork '08 suite when it comes to older documents.

  • Video made with Keynote don't work with QuickTime

    I have made 10 seconds animation with Keynote and exported it as a video with the highest resolution (.MOV). The Keynote file includes three slides. All the slides plays with Quicktime 7.6.9 (1680.8) in my old Mac G5 (sys. 10.5.8.) and throughout the animation works fine. But only the first slide plays with Quicktime 10.0 (118) in my Mac Book Pro sys. 10.6.7. Would it help uppdate to the system to 10.6.8?

    Try VLC. http://www.videolan.org/vlc/

  • Linking Keynote on iPod-Touch with Keynote on MacBookPro does not work.

    I purchased Keynote 5.0.5(942) for my MacBookPro (MacOS 10.6.7), and
    KeynoteRemote 1.2 (53) for my iPod-Touch 4th generation.
    I am trying to link KeynoteRemote on the iPodTouch with Keynote on MacBook Pro.
    KeynoteRemote gives me a Passcode, which I enter in the preferences panel on Keynote for MacBookPro.
    Verification does not work. Nothing happens, and after sometime an error message appears that
    verification has failed.
    I have tried to do all combinations of setting the firewall on or off, and checked out all linkage and network settings.
    Does anybody know what the tricks are to get KeynoteRemote to work with Keynote on MacBookPro?
    Or does KeynotePro not work at all?

    thanks, David. it works now. I think the problem was the firewall. I fixed it now.

  • Need some help with Keynote export

    I want to create an swf file from Keynote that will be used in a looped Powerpoint slideshow. It will be no longer than 1 minute long.
    I create the file and export as a .mov.
    Then I used Visualhub to convert to an .swf. People have had lots of issues playing it
    Then I converted the .mov file to .flv with Adobe Media Encoder, opened it in Flash and exported as .swf.
    More problems.
    I really like the ease of use and effects in keynote but the exporting is really bad.
    Are there any alternatives programs for the mac.
    I have already had a look at Sliderocket but it is web based which makes it slower and put images in slides a lot longer.
    I really need to find a way of making decent swf files with good effects etc

    Dave,
    The issue seems to be with Flash and how it is converting the QuickTime movie, rather than an issue with Keynote. If the QuickTime movie plays fine in QuickTime Player, then the export from Keynote to QuickTime is fine and indeed the issue is in the conversion from QuickTime to Flash.
    While this is not a forum for PowerPoint, check out the supported multimedia formats for PowerPoint - http://office.microsoft.com/en-us/powerpoint/HA012303251033.aspx. Flash is not listed. So while it might play, you might consult Microsoft.
    I would recommend using one of the following products to convert your QuickTime file to a PowerPoint supported format, other than Flash:
    Flip4Mac
    http://www.telestream.net/flip4mac-wmv/overview.htm
    Studio, Studio Pro, or Studio Pro HD. You can convert your QuickTime movies to WMV a fully supported format by PowerPoint. You can export to QuickTime and then use the Flip4Mac application to convert.
    MPEG Streamclip
    http://www.squared5.com
    You can convert to various formats including AVI and MPG, both which PowerPoint supports. This is application can be found for both Mac and PC at.
    Finally, a company does make Flash plugin tools "Flash Ready" for PowerPoint, due to the possible issues of adding Flash to PowerPoint. http://office.microsoft.com/en-us/marketplace/EM102525451033.aspx?pid=CE01030605 1033

  • Is Keynote iso compatible with keynote for Mac?

    Is Keynote iso compatible with keynote for Mac? Can I run a presentation on my ipad that was created on my Mac? And can I make changes on my ipad to a presentation that was first created on my Mac?

    Keynote files created on one platform can be played and edited on the other, but there are many incompatibilities.
    read this item from Apple:
    Transfering Keynote files to iPad

  • Is it possible to open eps files with Keynote?

    I have some eps Clipart files that I have been trying to edit so I can use the individual clipart images instead of having to crop a jpef or tiff copy of the original file.
    However, I can't seem to open the eps version of the file in any of the applications I have, which makes the files almost impossible to use...
    Is there any way of actually opening the eps files with Keynote, or does anyone know of a program or app that I can open these with?
    Thanks!

    There are a number of compatibility reasons why Keynote will not open eps files
    I use Illustrator to open, then save as a different file any eps files which Keynote wont open directly.

Maybe you are looking for

  • How to email report to the users

    Hi, I have a few reports in 6i. I can preview them but cannot mail them to the users. When I click on the mail icon, it gives me this error : REP-4203: Error occurred while sending a mail message. Second option I did was to directly create a pdf repo

  • Can I have the same printer installed multiple times under different names?

    On WIndows I have the same printer installed multiple times All using the same driver I have a Canon printer that has a rear tray and a bottom tray So, I will have one printer that prints to the rear and the other to the bottom Other printers (the sa

  • Print Accented Characters in UTL_FILE

    Hi All, I am trying to write a .csv file in to server path. everything is working fine. my problem is that when I try to write some accented characters , it was not written into the file properly. here is what I needed. MON-MONTRÉAL but instead it is

  • OBIEE  Performance Issues

    I am experiencing Performance issues with queries generated by OBIEE. The query generated by OBIEE run 2+ hours. Looking at the generated SQL, the execution plan is not utilizing indexes on the FACT table. We have dimension table linked to a partitio

  • Motion does not start up

    Ihave a Mac G5 Power PC NON INTEL Motion does not start up at all. Deleted preferences and re-installed 3 times. Have deadline to meet. Any help would be greatly appreciated. Vic Copy of report ===== Tuesday, January 30, 2007 11:12:24 PM Canada/Easte