Re: Calling other OSA Scripts
Re: Calling other OSA Scripts
- Subject: Re: Calling other OSA Scripts
- From: bob anderson <email@hidden>
- Date: Sun, 3 Jun 2001 21:08:33 -0400
If you want to pass the Perlscript files to process,
save it as a runtime version. Then launch it with the
Finder. The files will appear to the PerlScript as though
they were the arguments passed in a command line.
tell application "Finder"
open file tmpfile using application file "Macintosh HD:Path Folder1:Path
Folder2:hello.pl"
end tell
Regards,
Bob Anderson
>
Message: 11
>
Date: Thu, 24 May 2001 06:57:07 -0800
>
Subject: Re: Calling other OSA Scripts
>
From: g3pb <email@hidden>
>
To: Kevin Diffily <email@hidden>,
>
<email@hidden>
>
>
tell application "MacPerl"
>
Do Script "
>
for($x=0; $x < 10; $x++) {
>
print \"x is $x\\n\";
>
}
>
"
>
end tell
>
>
tell application "MacPerl"
>
Do Script "iMac:Desktop Folder:test.pl" -- path to perl script file
>
end tell
>
>
-- hcir
>
mailto:email@hidden
>
>
>
> Thanks but what is the syntax to call a PerlScript from an AppleScript?
>
>
--__--__--