1

我正在尝试让 PowerPoint 2011 从 AppleScript 运行幻灯片放映。我的脚本如下:

tell application "Microsoft PowerPoint"
    set settings to slide show settings of active presentation
    run slide show settings
end tell

幻灯片放映开始,但 PowerPoint 立即崩溃。我正在从 AppleScript 编辑器运行我的脚本,但也尝试从脚本目录中作为 PowerPoint 中的脚本运行,结果相同。我短暂地尝试从 Cocoa 应用程序运行脚本,但抱怨“设置”是一个缺失值。

尽管我怀疑它可能是 PowerPoint 错误,但我不熟悉调试 AppleScript 故障。在这一点上我有什么可以有用的尝试吗?

4

1 回答 1

0

尝试:

tell application "Microsoft PowerPoint"
    run slide show slide show settings of active presentation
    repeat until slide state of slide show view of slide show window of active presentation is not slide show state running
        delay 1
    end repeat
end tell
于 2013-05-30T17:22:38.867 回答