At 14.43 11/8/97, Georg Bauer wrote: >Vincent Nonnenmacher <dpi@pobox.oleane.com> wrote: > >> I don't think you get the point here. > >I think you don't get it here. I don't want to communicate with an >external application because AppleEvent is slow. And for sure I do not >want to communicate with something built on AppleScript, because >AppleScript gives a whole now definition to the word "slow". AppleScript is slow, but Apple Events certainly are not very slow when called directly with Mac::AppleEvents. Yes, Tk would be nice, and I am not arguing either position, just to say I have never known Apple Events to be "slow". Not the speediest things in the world, but probably as fast as a direct call to Tk would be from MacPerl. >I am currently using MacPerl for several tools. One converts message >formats from some proprietary BBS format to the Soup format to be read >by MacSoup. 60% of the runtime is for calling ZipIt using the DoScript >feature of MacPerl. That's no fault of MacPerl - it's a fault of >AppleScript/AppleEvent. Hey, it even isn't that reliable: from time to >time I get timeout's starting ZipIt! And that are local applications! Ah ... you are using DoAppleScript ... no wonder! You need to learn some about Mac::AppleEvents. DoAppleScript is always going to be slower (though it is almost always going to be faster to implement). I have several modules that make use of AE at http://pudge.net/macperl/ and an article about using Apple Events from MacPerl in the next issue of The Perl Journal (December 15). Also, I have a chapter on toolbox modules just about ready to put up on the web for anyone who wants to reivew it. It might go up this week. See the below link for details. It will NOT cover Apple Events or Windows/GUI toolbox calls; those are sufficient enough topics that I am pulling them out into separate chapters, which will be forthcoming. -- Chris Nandor pudge@pobox.com http://pudge.net/ %PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10 1FF7 7F13 8180 B6B6']) #== MacPerl: Power and Ease ==# #== Publishing Date: Early 1998. http://www.ptf.com/macperl/ ==# ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch