我有一个非常简单的applescript:
tell application "Opera"
get URL of active tab of window 1
end tell
我想看看 Apple Events 的底层。所以我在启用这两个环境变量的情况下启动了它:
export AEDebugSends=1;
export AEDebugReceives=1
现在我得到这个输出:
osascript browser.scpt
{core,getd target='psn '[Opera] {----={form=prop,want=prop,seld=URL ,from={form=prop,want=prop,seld=acTa,from={form=indx,want=cwin,seld=1,from=NULL-impl}}}} attr:{csig=65536 returnID=15130}
我希望看到对此处定义的函数的调用:https ://developer.apple.com/documentation/coreservices/apple_events?language=objc
我的最终目标是将 Applescript 翻译成 c 或 Obj-C 代码。
有人可以帮我理解输出的含义吗?
提前致谢