[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Open and open terms in MacPerl



At 10:14 1999-03-23 -0500, Chris Nandor wrote:
>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

You're quite right. I read *some* instructions somewhere, but those
weren't them. Thanks!

>>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).

I've read that (very helpful, thanks) and a lot of the Inside Mac book
on Interapplication Communication, and from that and your answer below,
it looks as though I may just have been lucky that it ever worked at all.

>>- 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.

I still wonder how MPW manages it. I'm guessing (even after reading
the source!) that MacPerl is started up with an 'odoc' event in its
queue, and it sees this and puts the filename into @ARGV. If that's
right, then it might be that AppleScript is sending an odoc, but that
it sometimes gets there after MacPerl has looked for it and found it
isn't there. It's hard to tell, though, especially as I only have the
current source, not that for 5.1.3r2.

Peter.


===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org