Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Watch applications send and receive Apple Events' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Watch applications send and receive Apple Events
Authored by: jimr on Jul 03, '06 01:45:45AM

<pre>#Sets AEDebug in the terminal
export AEDebugSends = 1
export AEDebugReceives = 1
in your login script (e.g. ~/.profile)
Though it seems that when .MAOSX/environment.plist exists, this is already there.


[ Reply to This | # ]
Watch applications send and receive Apple Events
Authored by: Krioni on Apr 01, '13 01:09:39PM

On my MacBook, running Mac OS X 10.6.8, I had to use the following:

export AEDebugSends=1
export AEDebugReceives=1
open -a /Path/to/

(Note: no spaces around the equals sign). Also, any AppleScript commands needed to be run from within that Terminal window. What I did was create an AppleScript file with my test code, then save it to test-debug.scpt on the Desktop. Then, every time I wanted to send some debugging-log commands to my app, I would save the AppleScript file and run the following:

osascript ~/Desktop/test-debug.scpt

I'm actually doing this while trying to debug a bizarre FileMaker bug (?) where UI Scripting stops responding for about 7 seconds after you click a button that opens a new window. So many work-arounds have failed: "with timeout 0.1 seconds" ; "ignoring application responses" ; and more. Basically, when you tell System Events to click a button in the Manage Database window for FileMaker Pro Advanced, the GUI successfully clicks the specified button, the new window open, but then the GUI stops responding to any other Apple Events for about 7 seconds, returns a 'missing value' as the result of the click, and then resumes functioning as expected. Extremely frustrating, since it adds a completely unnecessary 7-second delay to every action that pops up a new window.

[ Reply to This | # ]