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


Click here to return to the 'Monitor AppleEvents an application sends and receives' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Monitor AppleEvents an application sends and receives
Authored by: kerbaugh on May 07, '03 11:22:30AM

Rather than asking the user what he wants to do, it might be easier to simply toggle from on to off or off to on, like so:

#!/bin/sh

if [ -z "$AEDebug" ]; then
export AEDebug=1 AEDebugSend=1 AEDebugReceives=1
else
unset AEDebug AEDebugSend AEDebugReceives
fi



[ Reply to This | # ]
Monitor AppleEvents an application sends and receives
Authored by: bluehz on May 08, '03 09:00:18AM

thx kerbaugh - I thought about that too. Was also thinking about
building it all into a single launch cmd of the sort you could do
something like:

AEmonitor <appname>

and have the script turn on monitoring, launch the app, and
display the consol (I watch my console in the terminal). Then
shutting it all down when exited.



[ Reply to This | # ]
Monitor AppleEvents an application sends and receives
Authored by: geoffsaulnier on Jun 07, '03 02:43:37PM

export varname = value

will surely only work in bash, ksh or zsh, right? Not in sh.


'course, most ppl use sh because you can virtually guarantee its presence on a system.

G.

---
___<br>
Geoff Saulnier - Mac, *NIX, perl, hack!!



[ Reply to This | # ]