At 3:57 pm -0500 29/01/01, Steve Rothman wrote:
>So MHonArch received all the right options, but it still puts up the
>command line dialog which I have to click "OK" on. Is there any way
>to suppress the command line dialog when it's not needed? It kind of
>kills the automation aspect of all this. (although it's a great
>improvement to actually typing in the commands, of course)

At 5:50 pm -0500 29/01/01, Chris Nandor wrote:
>Hrm; what is the code in MHonArch that brings up the command line dialog?

Like I said yesterday, to suppress the Dialog, alter line 66 of file 
'mahamain' to read:

        require 'osinit.pl';  &OSinit(1);
         ------------------------------^

Why? MacPerl::Ask() is called at line 102 of 'osinit.pl':

        $cmdLine = &MacPerl::Ask( "Enter command line options:" );

_unless_ $noOptions is defined. (See lines 96, 97, 98 osinit.pl).

One way of setting $noOptions to 'true' is the modification of line 
66 of 'mahamain' above. As I said there may well be a more elegant 
way to do this.

At 3:57 pm -0500 29/01/01, Steve Rothman wrote:
>I don't have MPW now, and I think installing MPW is too much for just
>this one application, unless it's fairly easy to do?

It's quite big. I tend to agree it would be taking a sledge hammer to 
crack a nut to install MPW just to run MHonArc. The MacPerl 
application works fine after all.

Alan Fry

Reply via email to