develooper Front page | perl.macperl | Postings from July 2007

Re: passing arguments: AppleScript to MacPerl

Thread Previous | Thread Next
From:
David Micklem
Date:
July 8, 2007 09:45
Subject:
Re: passing arguments: AppleScript to MacPerl
Message ID:
1183898832.855471.169820@d55g2000hsg.googlegroups.com
Hi,

Nobumi's method (with the direct tell application "MacPerl") works
perfectly for me on OS9.2 and MacPerl 5.6.1.

However, I only get  output returned if MacPerl has previously ever
had an output window open.

That is, if MacPerl isn't running, then it starts up OK when I run the
script but I get no output/returned value. Re-running the script ->
still no output.

But if I go into MacPerl and either run a script, or syntax check a
script so that the MacPerl output window opens, then re-running the
AppleScript gives me the expected output. Even after I close the
MacPerl output window, running the AppleScript still works OK.

So, just out of curiosity, is it possible to make the script work
WITHOUT the user having to manually go into MacPerl and persuade it to
open an output window?

David



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About