This is one way to do it:
on open these_items
repeat with this_item in these_items
set the_path to POSIX path of this_item
set result to do shell script "/Users/james/backatcha.pl \"" & the_path & "\""
This will break if there happens to be a " in the pathname. 'quoted form of' POSIX path of... takes care of all that.
What is needed is "perl some.pl f1 f2 f3 f4" so only one Apple event is needed; the file list can be build as a string and passed with a single do shell script call.
JD
