At 10.01 -0500 1999.03.23, Peter Westlake wrote: >I downloaded some of Chris's modules, but I can't install them: I get >a message about how they need to be under the MacPerl source directory. >Just moving their folder into the source folder doesn't help. It may be >that I need to be able to compile MacPerl, but that involves buying >MetroWerks (or porting MacPerl to MPW, and I'm desperate enough to have >considered even *that*). You did not read the install directions. MacPerl: Power and Ease, pp. 164-168 http://www.perl.com/CPAN-local/modules/INSTALL.html http://www.perl.com/CPAN-local/doc/manual/html/pod/perlmodinstall.html http://www.perl.com/CPAN-local/authors/id/CNANDOR/cpan-mac-0.22.readme >Is there any way to emulate that in MacPerl? Mac::AppleEvents, Mac::AppleEvents::Simple (interface to the other), macperlcat.pod (Chris' Apple Events tutorial, comes with MacPerl 5.2.0r4, also at URL below). http://pudge.net/macperl/macperlcat.html Note that macperlcat is due for a major overhaul. It does not deal with Mac::AppleEvents::Simple, and will eventually need to deal with Mac::Glue and hosts of over things. I might make it into a larger work (maybe a series of articles that become a series of tutorials?). But my main priority right now is to get Mac::Glue worked on, and it is coming along well in my mind (I have yet to start coding again, but that's OK ... I am taking notes in case I get hit over the head). >So, out of intellectual curiosity and for >future use, some questions: > >- what does MacPerl do while it's waiting for a reply to an event? >Is there an idle handler, or does the script need to provide one? >For that matter, what do MPW or AppleScript do? Unfortunately, idle handling is not very good right now. It is at the top of my TODO list (though I am not that good with C and not intimately familiar with the code, so I am hoping to get Matthias to fix it :). Basically, MacPerl makes it hard to do anything while waiting for a reply. >- how does MacPerl decide whether or not there's anything to go into ARGV? If something is dropped on a droplet, there is data in @ARGV. That is basically it. Otherwise you can populate @ARGV yourself (the code I just sent with Mac::StandardFile is one way). -- Chris Nandor mailto:pudge@pobox.com http://pudge.net/ %PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10 1FF77F13 8180B6B6']) ===== Want to unsubscribe from this list? ===== Send mail with body "unsubscribe" to macperl-request@macperl.org