Perl droplet how?

2004-06-06 Thread Ingo Weiss
Hi all,

how can i make a Perl droplet (A Perl script that processes files or
folders dropped onto it) fast and easily?

Thanks for any help!
Ingo


Re: Perl droplet how?

2004-06-06 Thread Jerry LeVan
Try Drop Script or Platypus.
Jerry
On Jun 6, 2004, at 3:06 PM, Ingo Weiss wrote:
Hi all,
how can i make a Perl droplet (A Perl script that processes files or
folders dropped onto it) fast and easily?
Thanks for any help!
Ingo



Re: Perl droplet how?

2004-06-06 Thread Doug McNutt
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. --