Sorry for what I'm positive is a dopey question, but I'm a rank 
beginner at Perl in general and MacPerl in particular. I *have* spent 
literally hours going through the archives of this list and the 
MacPerl documentation trying to help myself, and I see fragments of 
answers but nothing that has yet worked for me...

I am using a wonderful Perl script called MHonArc 2.5 -- in fact this 
is the same script that is used to create the MacPerl archives on the 
web.

(For info: http://www.nacs.uci.edu/indiv/ehood/MHonArc/doc/mhonarc.html )

My procedure for using MHonarc on my Mac is this:

  * Start MacPerl (5.2.0r4)

  * I do Command-R to run a script, then I select the  MHonArc script

  * I get a prompt for a command line, then I type:
     mailboxname  -outdir  :outputpath  -rcfile  resourcefile.rsc  -add

This works great, and MHonArc speedily creates a set of web pages for 
me based on my Eudora mailbox.

My problem is that I can't figure out how to automate it, and I'll 
need to do it once a day.  On a unix system one would just type 
something on the shell like:

       #  mhonarc  mailboxname  -outdir  :outputpath  -rcfile 
resourcefile.rsc  -add

And so it would be really easy to make a shellscript to do this.

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. (There are a ton of posts on 
this topic in the MacPerl list archives, with many different 
solutions to this issue, but none of the solutions seem to work for 
me.)

In any event, it seems a little silly to use AppleScript for this - 
but I don't even know how to get started to write a simple MacPerl 
script that will start up another existing script and feed it the 
correct command line options.

Any advice? Thanks. -Steve

Reply via email to