At 10:59 am +0100 25/11/03, Martin Buchmann wrote:

sorry for all that mess. I think it's harder to make clear what i'm talking about than i thought in the beginning.

'test' is the name of the MacPerl droplet. "Hallo" was just something i tried to pass to the droplet. In a real case it would have been a filename, etc.

FORGET about droplets!! You send the Do Script event to MacPerl, not to any droplet. The parameters are a list, the first of which is the path to a perl script. Whether this script is a text file or a droplet makes no difference except that it's perfectly pointless and misleading for it to be a droplet.


Here is that script:

### TEST.PL
@macperl = split /:/, $ENV{MACPERL};
$docs = "$macperl[0]:Documents:" ;
for $f (@ARGV) {
                open F, ">$docs$f" ;
}


You send the Do Script event to MacPerl with either the path to TEST.PL or its text as the first item in the parameter list and the name of files to create as other items in the list.


'misc', 'dosc', '----', list (script_path_or_text, arg1, arg2)

if arg1 is "a.txt" then a file of that name will be created in your Documents folder etc etc.

All you have to do now is find out how to get your program to send that event. I can do that with Frontier or AppleScript or OneClick; you have do do it with pdftex. I can't tell you how to do that.


At 2:53 pm +0100 24/11/03, Martin Buchmann wrote:
If i let pdftex call my test script Capture AE shows the following:

Process("MacPerl").SendAE "misc,dosc,'----':[some alias]"


Where are your parameters?



JD



Reply via email to