2011-01-14 11 views
0

私は、PowerPoint 2011が現在プレゼンテーションを再生しているかどうかを確認するAppleScriptをいくつか作成しようとしています。AppleScriptを使用してPowerPointでプレゼンテーションが再生されているかどうかを確認するにはどうすればよいですか?

以前、私はKeynote用に次のコードを書いていました。

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

パワーポイントのAppleScriptのライブラリ、クラスのプロパティと属性、およびGoogleの検索結果を検索した後、私はまだ同等のソリューションを生成することができていません。何か案は?

答えて

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 
関連する問題