我正在尝试编写一些AppleScript来检查PowerPoint 2011当前是否正在播放演示文稿。
以前,我为Keynote编写了以下代码。
on isKeynotePlaying()
tell application "Keynote"
get properties
return (not frozen) and playing
end tell
end isKeynotePlaying
在搜索PowerPoint的AppleScript库,类的属性和属性以及Google搜索结果后,我仍然无法生成等效的解决方案。有什么想法吗?
答案 0 :(得分: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