perl.macperl...MacPerl passing arguments: AppleScript to MacPerl by Louis Pouzin- July 7, 2007 On Fri, 29 Jun 2007 23:14:37 -0700, Joshua Juran wrote:set names to ...set argv to namescopy dog to beginning of argvtell perl to do script argvHi Josh,Thanks for your answer. As you can read in my response to Nobumi, this scheme fails on both my mac&39;s. I suspect it is an AppleScript problem, not a MacPerl one.>These days I don&39;t use MacPerl anymore -- I have my own port of perl to a Unix-like environment that runs on classic Mac OS.Why Is this more effective than running OS X Besthttp://www.nntp.perl.org/group/perl.macperl/2007/07/msg3092.html Re: MacPerl passing arguments: AppleScript to MacPerl by Nobumi Iyanaga- July 1, 2007 Hello Louis,On Jun 29, 2007, at 10:36 AM, Louis Pouzin wrote:> Hi,>> Calling a macperl script (dog) from AS, with arguments a, b c, > would read:> tell perl to do script dog, a, b, c>> Assuming that a, b, c are strings, they are copied to ARGV in dog.>> The problem I have is passing a list of arguments, e.g.> set names to selection -- nb of selected objects not predictable> tell perl to do script dog, names -- names conversion fails>> Then I can...http://www.nntp.perl.org/group/perl.macperl/2007/07/msg3091.html passing arguments: AppleScript to MacPerl by David.Micklem- July 1, 2007 >Hi,>>Calling a macperl script (dog) from AS, with arguments a, b c, would read:> tell perl to do script dog, a, b, c>>Assuming that a, b, c are strings, they are copied to ARGV in dog.>>The problem I have is passing a list of arguments, e.g.> set names to selection -- nb of selected objects not predictable> tell perl to do script dog, names -- names conversion fails>>Then I can converts names to a list of strings:> set snames...http://www.nntp.perl.org/group/perl.macperl/2007/07/msg3090.html Re: MacPerl Re: passing arguments: AppleScript to MacPerl by kurtz le pirate- July 1, 2007 In article <C26EC51A-EA3F-43F6-B6A8-3BFF606F4D81metamage.com>, wanderermetamage.com (Joshua Juran) wrote:> This resource shows how to call AppleScript from Perl. Louis is > trying to call MacPerl from AppleScript.> sorry :(( read too quickly.-- klphttp://www.nntp.perl.org/group/perl.macperl/2007/07/msg3089.html |