2011-01-14 59 views
0

我正在尝试编写一些检查PowerPoint 2011是否正在播放演示文稿的AppleScript。如何使用AppleScript检查PowerPoint是否正在播放演示文稿?

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

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

通过PowerPoint的AppleScript的图书馆,属性和阶级属性,和谷歌搜索结果中搜索后,我仍然没有能够产生同等的解决方案。有任何想法吗?

回答

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 
相关问题