À (At) 18:50 -0500 12/12/02, Chris Nandor écrivait (wrote) :
At 10:35 +1100 2002.12.13, Ken Williams wrote:
Chris, do you know where 'keyReplyPortAttr' is defined?
Hm.  That's in AEMach.h.  This is the workaround I was using to get AESend
to work at all on Mac OS X.  If that won't work, I wonder if even
precompiled binaries will work.

To see if it will, use the 0.02 binaries you have installed and try this
one-liner:

% perl -MMac::AppleEvents -e '$e = AEBuildAppleEvent(qw(misc actv sign MACS
-1 0), ""); AESend($e, kAEWaitReply); AEDisposeDesc($e)'

It should activate the Finder, then the script should exit.
OS X 10.1.5/Perl 5.6

Your one-liner is working here (and also MacPerl::Ask, MacPerl::Answer).

Mac-Carbon-0.02_01 doesn't compile on my machine. I get this error:

/usr/include/gcc/darwin/2.95.2/g++/../stdbool.h:10: warning: empty declaration
AppleEvents.xs: In function `XS_Mac__AppleEvents_AESend':
AppleEvents.xs:624: `keyReplyPortAttr' undeclared (first use in this function)
AppleEvents.xs:624: (Each undeclared identifier is reported only once
AppleEvents.xs:624: for each function it appears in.)
make[1]: *** [AppleEvents.o] Error 1
make: *** [subdirs] Error 2


Cheers
-Emmanuel


--
______________________________________________________________________
Emmanuel Décarie / Programmation pour le Web - Programming for the Web
Frontier - Perl - PHP - Javascript - XML  <http://scriptdigital.com/>

Reply via email to