At 15:06 -0400 6/6/04, Ingo Weiss wrote:
>how can i make a Perl droplet (A Perl script that processes files or
>folders dropped onto it) fast and easily?

One way is to write a three line AppleScript. An advantage - or disadvantage - is that 
aliases and symbolic links will be resolved before you get the file to process. 
AppleScript has a "do shell script" command that doesn't care if the script is really 
perl.

Sample code - for something else - is at:
ftp://ftp.macnauchtan.com/Software/LineEnds/FixEndsFolder.sit
ftp://ftp.macnauchtan.com/Software/LineEnds/ReadMe_fixends.txt

You can also make a script into a package but getting a dropped file will require more:

ftp://ftp.macnauchtan.com/Software/PrepAPPL/ReadMe_PrepAPPL.text
ftp://ftp.macnauchtan.com/Software/PrepAPPL/PrepAPPL.scr

Is a tcsh script I wrote which will make a double-clickable Finder-recognized app from 
a script. It does not pick up dropped items.

-- 

--> Life begins at ovulation. Ladies should endeavor to get every young life 
fertilized. <--

Reply via email to