views:

72

answers:

1

I'm looking for a way to listen in to all Apple Events send by any program to any other program. There was an app, AEMonitor, that used to do this but it is abandonware as of now.

Is there a known way to do this via cocoa, carbon, etc?

Any help MUCH appreciated.

--

Target OS is 10.6

--

Carification: I'm looking to monitor ALL apple events or at very least a lion share of them. I am aware that it is possible to launch an app and listen to its AEs like this.

+1  A: 

From what I recall of AEMonitor (which I occasionally miss), it required the relaunch of the target application. I'd bet that it was setting the environment variables that are linked to in the macosxhints.com article.

Dave DeLong
Argh. That's disappointing. I suppose this means that the answer to my question is No.
Andrew J. Freyer
Perhaps is there any way to boot OSX such that every app would have AEDebug enabled?
Andrew J. Freyer
Could you not make a script to go through every application in your OS X install and replace the app with a script that would launch the app via the terminal after setting AEDebug? http://hints.macworld.com/article.php?story=20080809181956219 Then you could launch any app, it'd autoenable AEDebug from the script before launching, then Bob would indeed be your uncle. Theoretically...
John Gallagher
Andrew, John Gallagher: You can set up your environment.plist to contain the requisite environment variables for your next log-in. I wouldn't, though—the output would be way too noisy. You might even bog down syslogd, depending on just how much Apple Events are used behind the scenes. And even if you find that useful, it's only for debugging—this would be absolutely terrible to do to the user from a software program.
Peter Hosey
this is for as a dev tool, not for actual release of software.
Andrew J. Freyer