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

Re: [MacPerl-Forum] Call script from AS with @ARGV list



On 19/9/00, rjk@linguist.dartmouth.edu (Ronald J Kimball) wrote:

> I'm curious why didn't look at the more recent archives, since there
> was a detailed thread on this question on the main MacPerl list just
> last week.
> 
> http://bumppo.net/lists/macperl/2000/09/msg00018.html
> 
> :)

I failed to search sorted by date! Thanks very much for your pointer - my
problem has been comprehensively answered by the postings there.

The following works for me:

    -------
    
    set PerlScript to "Rory:Desktop Folder:test.pl"

    tell application "MacPerl"
        Do Script {PerlScript, "1", "2"}
        set r to the result
    end tell

    display dialog r
    
    --------
    
    #!perl -w
    print @ARGV;
    MacPerl::Reply("answer");
    
Thanks again.
Rory

--
		  Rory Campbell-Lange   +   The Campbell-Lange Workshop
 			                  London




==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-forum-request@macperl.org