点击 AppleEvents 被发送到另一个应用程序

编程入门 行业动态 更新时间:2024-10-23 10:23:27
本文介绍了点击 AppleEvents 被发送到另一个应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

是否可以像点击 Quartz 事件一样监控或点击发送到进程的 Apple 事件流?

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.

推荐答案

您需要以编程方式执行此操作还是手动/交互式可以?如果手动没问题,这里有一些方法:

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.

尝试使用 技术说明 TN2124:Mac OS X 中列出的技术"nofollow">Apple 活动.例如,将环境变量 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屋!

更多推荐

[db:关键词]

本文发布于:2023-04-17 14:32:48,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/915899.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:发送到   应用程序   AppleEvents

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!