At 12:03 +0100 10/13/03, Alan Fry wrote:
>What I miss most is the MacPerl droplet, on which you could drop a file, extract the 
>path (into ARGV) and do something with the file. For instance I have a droplet to 
>decode Base64 -- drop and bingo there is the decoded file.

I do use AppleScript for that kind of thing. I'll try to find some samples for you. In 
the meantime check this out. It is a droplet to replace line ends in dropped files but 
ignore that and have a look at the source.

<ftp://ftp.macnauchtan.com/Software/LineEnds/>
<ftp://ftp.macnauchtan.com/Software/LineEnds/FixEndsFolder.sit>  (52 kB)

It's not perl but it does show a way to make AS droplets pass filenames and arguments 
to executable shell tools. You should also learn about "POSIX path of" and "quoted 
form of" commands in AS.

> And similarly with more complicated issues like translating a 'pod' file to 'pdf'.

Wasn't that corncob great? I changed the creator code of all .pm's to match, but all 
that is "repaired" in OS neXt..

>Can anybody cheer me up?

-- 

Applescript syntax is like English spelling:
Roughly, but not thoroughly, thought through.

Reply via email to