>Hi John,
        Hi
        >Me too, a beginner. I've implemented some combo scripts using
MacPerl and another >scriptable tool, viz. AppleScript or NisusWriter. It's
simplistic, but my ambition is limited.

        If you have something that works for you, why not incorporate it?
Using Apple events in MacPerl looks a bit intimidating to me right now, so
for the time being I'm more than happy to use Applescript for calling apps.
But I definitely want to use Perl for text manipulation, and to make sure
that I can use my text manipulation routines on other platforms. 

        >As I hate mixing different languages in a single piece of code,
Perl, AS or NW scripts are >separate files. The interface is based on the
following:

        >A- Calling a Perl script:
        >  1- Make it a droplet and activate as an application, or
        >  2- Activate a can opener droplet (perl-fire) that executes any
Perl script.
        >
        >B- Passing arguments to Perl and getting results:
        >  1- clipboard, or
        >  2- files
        >

        I did the opposite. The script itself was meant to be distributed,
so I embedded my Perl scripts into the main Applescript droplet, in order to
prevent parts of the script suddenly "breaking" because of a missing Perl
routine. I had to send events to two apps, and compile information from the
resulting logs into a single report. (I also had to check an XML file for
problems, but that was quick.) So my main body is in Applescript, and my
directory search  and report generation is in Perl.  I passed my results
back to the main script, and of course to a report file. I found passing
arguments between the Perl and Applescript to be painless.


        >If you are interested, let me know.

        Always interested in other techniques.  While I'm on it, I also had
the out of memory error. In my case, I had a looping problem.





****************************************************************************
This email may contain confidential material.
If you were not an intended recipient, 
please notify the sender and delete all copies.
We may monitor email to and from our network.

****************************************************************************


Reply via email to