These are the notes I had on DropScript from April 23, 2002:

In the old version of DropScript, it would run the script once for each
file dropped on it. Now it takes all of the files dropped on it, and
passes the list to DropScript, which is the way MacPerl droplets do it,
or the way the command line does it...

    http://www.mit.edu/people/wsanchez/software/

I'm thinking it should take whatever you drop on it (file or folder)
and pass it in just as if you called the script from the command
line...


Pete

On Wed, 04 Sep 2002 15:00:38 +1000, "Shannon Murdoch"
<[EMAIL PROTECTED]> said:
> Hi all,
> 
> I've written a script that uses the File::Find module to recursively
> process
> the files within a specified folder (which is currently hand-coded into
> the
> script).
> 
> I'd love to make this script into a DropScript, where I can drop a
> folder on
> to it and have it's recursive contents processed.
> 
> Is this possible?
> 
> The first few relevant lines of code are:
> 
> #!/usr/bin/perl
> use File::Find;
> $dir = '/path/to/directory/';
> 
> find(\&process_file, $dir);
> 
> sub process_file {
>     $file = "$File::Find::name";
>     ###file processing code here (checks for .htm or .html on end of
>     file,
>     ### then checks for particular text string inside it)...
> }
> 
> 
> 



-- 
http://fastmail.fm - The way email should be...

Reply via email to