[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] UNIX to Mac linebreaks



finalproof@wr.com.au writes:
>Chris Nandor wrote:
>> Does anybody know of a droplet or something to change UNIX linebreaks to
>> Mac linebreaks?  I have BBEdit, but I wanted something to do it in batches,
>> drag-n-drop style.
>
>Try the following. It works for me, subject to these caveats. I have
>found that MacPerl droplets (version 5.0.7r1m) only work if MacPerl is
>also running.

I've heard this from other users, and I'm still puzzled why this happens.
My standard suggestion was that the desktop file should be rebuilt,
but this doesn't seem to have helped some people.

>The droplet itself needs a fair bit of memory to convert
>even the smallest file: I give it 1500k.

To that statement, I must object! Whatever can be said about droplets, their
memory consumption is NOT related to the script executed. It is SOLELY
dependent on the number of files dropped on it (you might have dropped a large
number of small files).

>As I come from an environment
>where one always makes a backup copy of any file, the script does
>likewise, rather than editing the file in place.

A laudable principle. If you're using <>, you can acheive this effect by
assigning to $^I, by the way.

> However, in MacPerl, `unlink' does not always remove the backup file
> afterwards, for some reason.

Could it be that the file was open in another application? In MacOS, as opposed
to UN*X, open files cannopt be deleted.

Matthias

-----
Matthias Neeracher   <neeri@iis.ee.ethz.ch>   http://www.iis.ee.ethz.ch/~neeri
   "What is the search for the next great compelling application but a
    search for the human identity?"        -- Douglas Coupland, _Microserfs_