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: tjfarrell on May 06, '03 08:54:38PM

Your script is a bourne (sh) shell script (indicated by the
#!/bin/sh on the first line).

The Bourne shell and other shells based on it (zsh, bash, ksh)
use a different way to set environment variables. "setenv" is
appropiate for tcsh and csh shells.

You should use something like the following in the script.


# Export all environment variables.
set -a
AEDebug=1
AEDebugSend=1
AEDebugReceives=1

---
--
T. Farrell



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

Thx! I am still a learning Shell Scripter as you can tell - thats
very useful info. Unfortunately - even after changing the setenv
stuff - its not working as planned. I launch the script, answer
"on" to talk AEmonitoring on - then launch a known
AppleScript type app - open AppName & - but I get no output in
the terminal. Any ideas????



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

Ooops - just noticed I need to be reading the Console for
output.... let me try that...



[ Reply to This | # ]