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

[MacPerl] MacPerl scripts running other MacPerl scripts...




Hi,

   I was wondering; is it poosible to run one MacPerl script from
another MacPerl script?

I'm trying to get the following code to work and I'm not sure if
I am running into a limitation of macPel.

I'd like the script "Main" to call the script "RunTest" and print
out a message when it is done.  Somehow, "RunTest" never gets executed.
I find that the same code for "Main" works if I write it in Applescript.



The MacPerl code for "Main" is
-------------------------------------------
&MacPerl'DoAppleScript (<<EOS);
tell application "MacPerl"
make new Window
Do Script "Macintosh HD:Applications:RunTest"
end tell
EOS

printf STDOUT "Done\n";
-------------------------------------------

The macPerl code for RunTest is

#!perl

&MacPerl'Reply ("Success");

-------------------------------------------

The Applescript version of "Main" is

tell application "MacPerl"
make New Window
Do Script "Macintosh HD:Applications:RunTest"
end tell


Thanks for your help,

Marty

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch