>
>> Or can i use other variables (environment?) to pass arguments to the
>> script?
> You can export an environment variable on the command line that calls
> Perl.
> As far as I can see this is less flexible than the Perl-based approach
> above.
>
> --------------------------------------------------------------------------
> set argument to "This is passed to Perl"
>
> set my text item delimiters to return
> set perlScript to text items of ("export TEST=7;/usr/bin/perl
> <<'__END__'
> print qq(Perl was passed: $ENV{TEST});
> __END__
> ")
> set my text item delimiters to ASCII character 10
> do shell script (perlScript as text)
>
> display dialog result
> --------------------------------------------------------------------------
>
> Gero Herrmann
Hallo Gero,
many thanks for your answer...
I managed to run your script & adapt it for my needs a short time after
posting this yesterday - sorry :-). (I tried this whith script editor
on a machine where (i forgot) Applescript 1.7 is installed (how stupid -
of course this won't work).
Daisy