有人知道我将如何实现以下目标吗?
我想在幻灯片放映结束后让applescript close Keynote。有什么想法吗?是否可以通过keynotes应用程序属性中的类“播放”?但我不知道该怎么写。
到目前为止我的代码
tell application "Keynote" to open "/Users/bla/Desktop/bla1.key"
delay 3
set var to properties of application "Keynote"
repeat
if var contains "playing:false" then
exit repeat
end if
delay 1
end repeat
do shell script "killall 'Keynote'"thx :)
发布于 2013-05-22 23:00:14
只需使用tell app "Keynote" to playing即可访问播放属性
tell application "Keynote"
open "/tmp/temp.key"
end tell
tell application "System Events" to tell process "Keynote"
click button "Play" of tool bar 1 of window 1
end tell
tell application "Keynote"
repeat while playing
delay 1
say "a"
end repeat
end tell
say "b"https://stackoverflow.com/questions/16692383
复制相似问题