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

Re: [MacPerl] Running two (or more?) copies of MacPerl



At 8:28 AM -0800 11/1/98, Rich Morin wrote:
>I raised this question a while back, but I don't recall getting a
>definitive answer, so here it is again...

<ready and waiting...>

>Mac OS, in some mysterious (to me, at least :-) manner, calls up MacPerl
>whenever a MacPerl droplet or CGI script is invoked.  This seems to be
>tied to the Type and/or Creator of the document in question.

yes, each document (weather it's blank or not) has a TYPE and CREATOR code;
and each application has type "APPL" and creator is up to the author. Read
below to finish my explination

>What would be involved in creating a second copy of MacPerl, functionally
>identical, which would respond to a different set of documents?  What I
>have in mind here is, for instance, letting one copy of MacPerl handle
>CGI scripts while another is used for development.

WITHIN the APPL, there is a resource called "BNDL" to which the MacOS
bundles, for example, "TEXT", "McPL", - all the different file types the
APPL can handle.  If you were to select "MacPerl" and hit CMD-D for
duplicate, the MacOS uses the *LAST MODIFIED* file, which is the duplicated
APPL to launch the perl scripts.  To make MacPERL copy 1 (I'm going to call
that "MP1" and the copy "MP2") launch CGI scripts only, and MP2 launch
droplets only, you need to know the CODE and BNDL resources in the MacOS
programming.  Not only should you delete the corresponding "BNDL", but
you'd need to delete the proper code and have the CODE get worked around
it.  I don't know myself how that would be accomplished, but I do know
that's what you would need to do.

This sounds extremely complicated, but I attempted to simplify it to
describe it and easy to understand.  If this is mis-understood, please
write mailto:tjudd@pacifier.com and I will write back personally.

>-r
>
>Rich Morin:          rdm@cfcl.com, +1 650-873-7841, http://www.ptf.com/~rdm
>Prime Time Freeware: info@ptf.com, +1 408-433-9662, http://www.ptf.com
>MacPerl: http://www.ptf.com/macperl,   http://www.ptf.com/ptf/products/MPPE
>MkLinux: http://www.mklinux.apple.com, http://www.ptf.com/ptf/products/MKLP

Thanks
--Tim

--------------------------------------------------------------------------------
"If the opposite of 'pro' is 'con' ...
    does that mean the opposite of 'progress' is 'congress'??"  -- Unknown
--------------------------------------------------------------------------------



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch