[Pythonmac-SIG] Accessing Resource forks

2007-07-13 Thread Christopher Barker
Hi all, Somehow over all these years, I've managed to use Python on Macs without having it deal with resource forks and all that -- but ironically, now that we're all OS-X all the time, I need to do it now. What I'm trying to do is simple check for the existence of a resource fork, and if it's th

Re: [Pythonmac-SIG] Accessing Resource forks

2007-07-13 Thread Hamish Allan
Hi Chris, Let me start by saying that I've never used MS services for Macintosh, so this is all guesswork. But the first thing I wondered was, if files uploaded over AFP aren't using ._* files, what are they using? Presumably the Windows machine isn't actually mounting an HFS or HFS+ filesystem, s

Re: [Pythonmac-SIG] Accessing Resource forks

2007-07-13 Thread Daniel Lord
On Jul 13, 2007, at 2:55 PM, Christopher Barker wrote: > > How should I be doing this -- the docs are sparse, to say the least! > > By the way, I might as well tell you the real goal, maybe one of you > will have a better idea. > RezDet command line utility perhaps? as in: [15:30:10] [EMAIL PROT

Re: [Pythonmac-SIG] Accessing Resource forks

2007-07-13 Thread Christopher Barker
Daniel Lord wrote: > RezDet command line utility perhaps? Yup, that looks very useful -- it just may be the solution. I had no idea it was there, and it took a while to find it. Maybe it's time to add /Developer/Tools/ to my PATH. thanks, -Chris (still wondering how to do it inside Python...

Re: [Pythonmac-SIG] Accessing Resource forks

2007-07-13 Thread Christopher Barker
Hamish Allan wrote: > Let me start by saying that I've never used MS services for Macintosh, > so this is all guesswork. But the first thing I wondered was, if files > uploaded over AFP aren't using ._* files, what are they using? The server is storing the resource forks somewhere, but not anywher

Re: [Pythonmac-SIG] Accessing Resource forks

2007-07-13 Thread Nicholas Riley
On Fri, Jul 13, 2007 at 02:55:55PM -0700, Christopher Barker wrote: > The other obvious option is to look for the ._* files, which is where > the resource fork is stored with the SMB protocol. However, we're > concerned that that may not be reliable -- if a file were put up with > SMB, then replace

Re: [Pythonmac-SIG] Accessing Resource forks

2007-07-13 Thread Nicholas Riley
On Fri, Jul 13, 2007 at 03:56:16PM -0700, Christopher Barker wrote: > Hamish Allan wrote: > > Let me start by saying that I've never used MS services for Macintosh, > > so this is all guesswork. But the first thing I wondered was, if files > > uploaded over AFP aren't using ._* files, what are they