自来水的AppleEvents被发送到另一个应用程序 [英] Tap AppleEvents being sent to another application

查看:249
本文介绍了自来水的AppleEvents被发送到另一个应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以监控或挖掘苹果事件流被送到一个过程,您可以点击石英活动以同样的方式?

Is it possible to monitor or tap the stream of Apple Events being sent to a process, in the same way you can tap Quartz Events?

我有一个会谈到另一个应用程序,以迫使它导入文件的应用程序,但它的方式,是通过菜单或UI脚本无法这样做,我试图追查它是如何做到这一点。

I have an application that talks to another application to force it to import files, but it does so in a way that's unavailable through menus or UI scripting, and I'm trying to track down how it does this.

推荐答案

您需要以编程方式做到这一点还是手动/交互式OK?如果手工是确定的,这里有一些方法:

Do you need to do this programmatically or is manual/interactive OK? If manual is OK, here are some approaches:

尝试使用AppleScript编辑录制的目标应用程序。

Try using AppleScript Editor to record the target app.

尝试使用href=\"https://developer.apple.com/library/mac/#technotes/tn2124/_index.html\" rel=\"nofollow\">技术说明TN2124 href=\"https://developer.apple.com/library/mac/technotes/tn2124/_index.html#//apple_ref/doc/uid/DTS10003391-CH1-SECAE\"相对=nofollow>苹果事件的。例如,环境变量 AEDebugReceives 设置为 1 和运行环境下的目标应用程序。

Try using the techniques listed in Technical Note TN2124: Mac OS X Debugging Magic under Apple Events. For example, set the environment variable AEDebugReceives to 1 and run the target app under that environment.

这篇关于自来水的AppleEvents被发送到另一个应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆