[Pythonmac-SIG] Munging line endings

John W Baxter jwblist@olympus.net
Mon, 5 Jun 2000 14:12:42 -0700


>Change Type and Creator (a.k.a. "ctc") will do it, at least for sets
>of files dragged onto it (I'm not sure about nested folders). It's
>free and should be available at any Mac software archive, or I can
>send you a copy of version 1.5 (probably outdated). It's generally a
>useful thing to have around (though for drag-and-drop file type
>changing I more often use FileTyper, which is shareware and does not
>do line ending conversions).
>
>-- Russell
>
>>I know I'm probably overlooking it--is there a tool in the MacPython
>>distribution that will change unix to mac line endings in a set of Python
>>code files, including files in nested folders?

Note that "sets of files dragged onto it" equates to "files listed in the
direct parameter of an "open" Apple event sent to it".  And the latter is
constructable in Python (but the direct manipulation can be written in
Python).

   --John
-- 
John Baxter   jwblist@olympus.net      Port Ludlow, WA, USA