Preventing Powerpoint popups during Applescript

Discussion in 'Mac Programming' started by 99bobster99, Sep 22, 2011.

  1. 99bobster99 macrumors newbie

    Aug 2, 2011
    Is there a way to prevent all the visual flashing from popups during the "activating" of Powerpoint through an applescript? I have the following code which works, but there are a lot of popups which occur before and after the slide show plays, any suggestions?

    To start the powerpoint slide show;

    tell application "Microsoft Powerpoint"
    open "/users/documents/show1.pptx"
    run slide show the slide show settings of the front presentation
    end tell
    To stop the powerpoint slide show;

    tell application "Microsoft Powerpoint"
    exit slide show slide show view of slide show window of the front presentation
    tell front presentation
    save in "/users/documents/show1.pptx"
    end tell
    end tell
    I tried various patterns of the "Finder" to make the process "visible" false, but that did not work. The main powerpoint screen is always open. I even tried to use "launch" instead of "activate", same thing, my slide stalled and started playing half way into the presentation. Any ideas?
  2. wrldwzrd89 macrumors G5


    Jun 6, 2003
    Solon, OH
    PowerPoint, like most programs written properly to support AppleScript, should also support an option to turn dialogs off. To find this, open PowerPoint's dictionary in AppleScript Editor. (File -> Open Dictionary... then navigate to PowerPoint)

Share This Page