Re: Picking up resource forks and extended attributes on Mac OS X ?!



Mitrokhin wrote:
Also (dare I ask for this too) If some nice soul could point me in the
right direction for picking up files with extended attributes under OS
X I'd be really gratefull to. Should it be done the same way, ie. via
os. calls or perhaps by way of a popen or ... ?

Mac OS X 10.5 comes with a Python "xattr" package pre-installed, which
the xattr command-line utility is built on top of. Furthermore, the
resource fork can be accessed as an extended attribute
(xattr.XATTR_RESOURCEFORK_NAME). This might also be true of Mac OS X
10.4, but I don't recall for sure and I don't have access to it to
check.

-Miles
.



Relevant Pages

  • Re: Apple Newsreader
    ... surprised me when I got my Mac, no native write to ftp ability - afaprt from the terminal. ... anything but just picking up what I've read on various sites. ...
    (uk.comp.sys.mac)
  • Pick color from screen in powerpoint 2008 not matching picked color
    ... picking a color from screen using the "pipet tool" does not work properly on my powerpoint 2008 for mac: the color does not match to the picked one. ... One the same machine powerpoint 2004 does the work perfectly. ...
    (microsoft.public.mac.office.powerpoint)
  • Re: Buffalo router disupts internet connection on lease renewal
    ... but what are your chances of picking a MAC address that's ... hardware unique, and the chances are you're picking one that belongs ...
    (alt.internet.wireless)
  • To those of you who use iView Mediapro
    ... I just talked to a friend of mine at Microsoft. ... Apparently the Mac BU ... has no intention of picking up this product. ...
    (comp.sys.mac.apps)
  • Re: iMac G4 20"
    ... considering picking it up, but I'd like to confirm a few things first. ... It came with Mac OS X 10.3 installed, and is able to run classic Mac OS 9 applications in the Classic compatibility layer only. ... Perhaps I'm trying to read too much into this but can't classic Mac OS 9 applications that are carbonized run in this G4 without the Classic compatibility layer? ...
    (comp.sys.mac.system)