[Pythonmac-SIG] move/rename files w resource forks

brad.allen at omsdal.com brad.allen at omsdal.com
Mon Nov 15 18:23:16 CET 2004


Bob Ippolito <bob at redivi.com> wrote on 11/15/2004 11:14:08 AM:

> No POSIX functions handle files with resource forks, and Python's os
> module on OS X and several other operating systems is all POSIX code.
>
> You have three options:
> 1. Use command line tools that understand forks (MvMac, etc.), this is
> a bad idea
> 2. Use NSFileManager from PyObjC
> 3. Use the Carbon functions (probably in the Carbon.File module).
>
> #2 is definitely the easiest, #3 works on a stock installation.

All roads lead to PyObjC. Learning a little Cocoa keeps climbing higher and
higher on my to-do list.



More information about the Pythonmac-SIG mailing list