0

我有一个简单的 AppleScript,它告诉我特定浏览器中活动窗口的 url

tell application "Opera"
   get URL of active tab of window 1
end tell

但是我希望看到运行该脚本所需的 Apple 事件,可能是其中的一些:https ://developer.apple.com/documentation/coreservices/apple_events?language=objc 我的最终目标是编写相同的脚本但使用 Apple Core服务。

我检查了脚本编辑器,但没有看到显示该信息的任何选项卡或菜单。有什么办法可以翻译那个脚本吗?

提前致谢和问候

4

1 回答 1

3

是的,有几种这样的方法。我最喜欢的是使用Script Debugger,它只是为您将 AppleScript 转换为原始 Apple 事件。或者,您可以在export AEDebugSends=1; export AEDebugReceives=1打开的环境中运行 AppleScript 。

于 2018-12-04T20:52:27.020 回答