我正在尝试在Safari上运行Javascript,最重要的是它。
tell (application "Safari" whose frontmost is true) to do JavaScript theScript in current tab of first window
但我收到这样的错误:
execution error: Can’t get application "System Events" whose frontmost of it = true. Access not allowed. (-1723)
我在哪里弄错了?