【问题标题】:Simple AppleScript crashing PowerPoint 2011简单的 AppleScript 使 PowerPoint 2011 崩溃
【发布时间】:2013-05-31 01:22:38
【问题描述】:

我正在尝试让 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 应用程序运行脚本,但它抱怨“设置”是一个缺失值。

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

【问题讨论】:

  • 我尝试了您的代码,它适用于我的 PP 2011 SP 1 和空白演示文稿。你有一些不寻常的幻灯片设置吗?
  • 有趣。我尝试了两个空白演示文稿,然后更新到最新版本(14.3.4)并再次尝试(使用空白)......仍然是同样的崩溃。令人沮丧的是,崩溃报告没有提供任何有用的细节。

标签: macos applescript powerpoint


【解决方案1】:

试试:

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

【讨论】:

  • 同样的问题,不幸的是:(
猜你喜欢
  • 1970-01-01
  • 2017-09-03
  • 2012-08-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-05-28
  • 1970-01-01
  • 2013-08-06
相关资源
最近更新 更多