• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to call a Perl script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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"


  • Prev by Date: Re: Rot 13 (OFF)
  • Next by Date: Re: Using V-PC with Applecsript
  • Previous by thread: Re: How to call a Perl script
  • Next by thread: Re: How to call a Perl script
  • Index(es):
    • Date
    • Thread