Re: How to call a Perl script
Re: How to call a Perl script
- Subject: Re: How to call a Perl script
- From: Sun Real <email@hidden>
- Date: Tue, 3 Jul 2001 16:52:08 +1000
Katherine Richmond's message of 3/7/01 5:00 AM contained:
>
...Then in the AppleScript, I am calling my perl script like this:
-*-
>
tell application "Finder"
-*-
This is not required for what you are doing & may be the problem. You
need only invoke the Finder if you're wanting it to do something for you,
i.e you are using a command out of its dictionary.
I don't know about MacPerl, but I get these errors in nested tells where
the command ends up being targeted at the wrong object.
>
activate
>
tell application "MacPerl"
>
DoScript("use Pathology::PerlScripts::parseCernerFiles2.pl")
>
end tell
>
end tell
>
>
This doesn't work. ---"MacPerl got an error. Can't continue DoScript."--- Can
>
you please tell me what I am doing wrong?
I would try just this, all one line:
tell application "MacPerl" to DoScript("use
Pathology::PerlScripts::parseCernerFiles2.pl")
HTH,
Richard Morton
-- Great Lies of the Music Business: "We're having the flyers printed
tomorrow"