In an earlier thread Gero Herrmann posted this ... -------------------------------------------------------------
set argument to "This is passed to Perl" set my text item delimiters to return set perlScript to text items of "/usr/bin/perl <<'__END__' my $argument = <<'EOFARGS'; " & argument & " EOFARGS chomp $argument; print qq(Perl was passed: $argument); __END__ " set my text item delimiters to ascii character 10 do shell script (perlScript as text) display dialog result ------------------------------------------------------------- .... as a solution for passing a variable from AppleScript to a perl script. I currently work on an application with Applescript Studio and need exactly this - a perl script with a variable part - but unfortunately haven't managed to make this example work. So here's my question: Any ideas what makes this example run? Are there other solutions for this problem (w/o using temp files)? Can I access and change (using variables?) perl scripts I added to the recources of my app in Project Builder? (How) can i pass command line arguments to such a script? Or can i use other variables (environment?) to pass arguments to the script? Many thanks for your help Daisy
