【问题标题】:How can I use AppleScript to check if PowerPoint is playing a presentation?如何使用 AppleScript 检查 PowerPoint 是否正在播放演示文稿?
【发布时间】:2011-01-19 03:28:38
【问题描述】:

我正在尝试编写一些 AppleScript 来检查 PowerPoint 2011 当前是否正在播放演示文稿。

之前,我为 Keynote 编写了以下代码。

on isKeynotePlaying()
    tell application "Keynote"
        get properties
        return (not frozen) and playing
    end tell
end isKeynotePlaying

在搜索了 PowerPoint 的 AppleScript 库、类的属性和属性以及 Google 搜索结果后,我仍然无法生成等效的解决方案。有什么想法吗?

【问题讨论】:

    标签: applescript powerpoint


    【解决方案1】:

    在深入研究了 PowerPoint 的 AppleScript 库之后,我偶然发现了 slide show view 类。这是我的解决方案。

    on isPowerPointPlaying()
        tell application "Microsoft PowerPoint"
            return slide state of slide show view of slide show window of active presentation is slide show state running
        end tell
    end isPowerPointPlaying
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-01-27
      • 2022-10-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-01-26
      • 2020-11-03
      • 1970-01-01
      相关资源
      最近更新 更多