At 12:05 pm +1000 6/9/02, Shannon Murdoch wrote:
>Thanks for the help so far guys, I've got a much better picture of what's
>going on now!
>
>Does the @ARGV array contain the full paths to the file, or just their names
>(ie, do the files HAVE to be in the same directory as the dropscript?)

The full paths.  To verify this, make a droplet using this script and 
drop a few files on it.  A file will open listing the pathnames of 
the files.

#!/usr/bin/perl
$report = 'report.txt' ;
open REPORT, ">$report" ;
for (@ARGV) {
   print REPORT "$_\n";
}
`open $report` ; # shell command


This script will do more, but only drop small things...

#!/usr/bin/perl
$report = 'report.txt' ;
open REPORT, ">$report" ;
for (<>) {print REPORT "$_\n";}
`open $report` ;
JD

Reply via email to