At 15:57 -0500 01.29.2001, Steve Rothman wrote:
>>  >I've tried writing an AppleScript, and I can launch MacPerl and
>>>MHonArc from AppleScript just fine, but I can't figure out how to
>>  >simulate typing in the command line.
>
>>
>>      tell app "MacPerl"
>>              do script ["mhonarc", "mailboxname", "-outdir", ¬
>>                      ":outputpath", "-rcfile", "resourcefile.rsc", "-add"]
>>      end
>>
>>
>>As to starting existing scripts ... you could possibly do:
>>
>>      #!perl
>>      @ARGV = ("mailboxname", "-outdir", ":outputpath",
>>              "-rcfile", "resourcefile.rsc", "-add");
>>      do 'mhonarc';
>
>I tried both methods and they both work. THANKS!
>
>But... there's still a problem.
>
>Either script is launching MacPerl and  MHonArc, but MHonArc still
>displays the "command line" dialog (the arguments that the scripts
>send are not listed).
>
>If I simply click ok on the command line window, then MHonArc runs
>using all the correct options.
>
>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)

Hrm; what is the code in MHonArch that brings up the command line dialog?


>>Or you could, if you have MPW perl set up, do:
>
>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 is not hard, no.  It takes a little bit of work, and it has a lot more
uses in the future.

-- 
Chris Nandor                      [EMAIL PROTECTED]    http://pudge.net/
Open Source Development Network    [EMAIL PROTECTED]     http://osdn.com/

Reply via email to