【发布时间】:2016-06-16 23:34:04
【问题描述】:
我需要从命令行“重新加载”一个 Safari 扩展(并且稍后还要构建包)。
如何做到这一点?
为什么?
我想一步构建——我的代码在 CoffeeScript 中,因此无论如何我都在编译它。
我尝试了什么?
除了绝望地谷歌搜索之外,我还尝试使用这个 AppleScript:
tell application "System Events"
tell process "Safari"
click the button "Reload" of window "Extension Builder"
end tell
end tell
出现哪些错误:
系统事件出错:无法获取进程“Safari”的窗口“Extension Builder”的“重新加载”按钮。
还有这个变化:
tell application "System Events"
tell process "Safari"
tell button "Reload" of window "Extension Builder" to perform action
end tell
end tell
这不会给出错误,但实际上也没有做任何事情。
【问题讨论】:
标签: applescript safari-extension