Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

99bobster99

macrumors newbie
Original poster
Aug 2, 2011
9
0
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;

Code:
tell application "Microsoft Powerpoint"
activate
open "/users/documents/show1.pptx"
run slide show the slide show settings of the front presentation
end tell

To stop the powerpoint slide show;

Code:
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"
close
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?
 
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)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.