相关疑难解决方法(0)

如何从命令行重新加载Safari扩展?

我需要从命令行"重新加载"Safari扩展(稍后再构建包).

如何才能做到这一点?

为什么?

我想一步到位 - 我的代码是在CoffeeScript中,因此无论如何我都在编译它.

我试过了什么?

除了谷歌搜索无望,我尝试使用这个AppleScript:

tell application "System Events"
   tell process "Safari"
       click the button "Reload" of window "Extension Builder"
   end tell
end tell
Run Code Online (Sandbox Code Playgroud)

出了哪些错误:

系统事件出错:无法获取进程"Safari"的窗口"Extension Builder"的"重新加载"按钮.

而这种变化:

tell application "System Events"
    tell process "Safari"
       tell button "Reload" of window "Extension Builder" to perform action
    end tell
end tell
Run Code Online (Sandbox Code Playgroud)

哪个不会给出错误,但实际上也没有做任何事情.

applescript safari-extension

4
推荐指数
1
解决办法
2110
查看次数

标签 统计

applescript ×1

safari-extension ×1