This should do what you want, including notifying you when the PPT viewer has been closed. I wrapped up the call to open a PPT file in a little helper function to make it a bit easier to use.
Code:
ssCore.init();
ssDefaults.synchronousCommands = true;
function LaunchPPT(path:String, cbfn:Function)
{
var r:Object = ssCore.Shell.getDefaultApplication({extension:"ppt"});
if (r.success)
if (r.result != "")
ssCore.Shell.execute({path:r.result, arguments:"/s " + path, waitForExit:true}, {callback:cbfn});
}
function onPPTClosed(r, c, e)
{
ssCore.App.showMsgBox({prompt:"PPT closed"});
}
LaunchPPT("c:\\test.ppt", onPPTClosed);
The
ssDefaults.synchronousCommands = true; means the default call mode for ssCorec command is synchronous command. However, in the call to Shell.execute I've specified a callback function (passed in as
cbfn) so that call is made asynchronously. That means that we don't have to worry about Flash timing out if the PPT file is kept open longer than 15 seconds.
I guess that means you didn't get any love from MDM?