aedebug

| | Comments (0)
This little script will print out Apple event debugging info.

#!/bin/bash
AEDebug=1 AEDebugSends=1 AEDebugReceives=1 AEDebugVerbose=1 AEDebugOSL=1 "$@"

Such as:

aedebug osascript -e 'tell app "Finder" to activate'

Returns, in part:

AE2000 (918): Sending an event:
------oo start of event oo------ { 1 } 'aevt': misc/actv (ppc ){ return id: 60162053 (0x3960005) transaction id: 0 (0x0) interaction level: 64 (0x40) reply required: 1 (0x1) remote: 0 (0x0) target: { 2 } 'psn ': 8 bytes { { 0x0, 0xe0001 } (Finder) } optional attributes: { 1 } 'reco': - 2 items { key 'subj' - { -1 } 'null': null descriptor key 'csig' - { 1 } 'magn': 4 bytes { 65536l (0x10000) } } event data: { 1 } 'aevt': - 0 items { } } ------oo end of event oo------ AE2000 (918): Received an event reply: ------oo start of event oo------ { 1 } 'aevt': aevt/ansr (ppc ){ return id: 60162053 (0x3960005) transaction id: 0 (0x0) interaction level: 112 (0x70) reply required: 0 (0x0) remote: 0 (0x0) target: { 1 } 'psn ': 8 bytes { { 0x0, 0xe0001 } (Finder) } optional attributes: < empty record > event data: { 1 } 'aevt': - 0 items { } } ------oo end of event oo------ With the glue script I can do this, to get a similar result: aedebug glue Finder '$g->activate' __URLLLLL__

Leave a comment

<pudge/*> (pronounced "PudgeGlob") is thousands of posts over many years by Pudge.

"It is the common fate of the indolent to see their rights become a prey to the active. The condition upon which God hath given liberty to man is eternal vigilance; which condition if he break, servitude is at once the consequence of his crime and the punishment of his guilt."

About this Entry

This page contains a single entry by pudge published on November 27, 2003 10:46 AM.

Christmas Music was the previous entry in this site.

Sunday Thoughts is the next entry in this site.

Find recent content on the main index or look in the archives to find all content.