At 9:00 am -0600 13/10/03, James Reynolds wrote:
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 & "\""
display dialog result
end repeat
end open



Save as an application.



And /Users/james/backatcha.pl is:



#!/usr/bin/perl


print "I got: $ARGV[0]";


Thank you very much for that suggestion -- it is just the sort of thing I was hoping for.

But I have a bug somewhere -- just a simple AS

do shell script "/Users/alanfry/Desktop/backatcha.pl"

results in the error:

...backatcha.pl:perl:bad interpreter:Permission denied

The script runs fine from the Terminal with the command 'perl' however. What am I missing?

Alan

Reply via email to