Chris Jett schrieb dereinst (am 31.08.2006 20:00 Uhr) via
[EMAIL PROTECTED]:

> Also - looking at an attachment that I sent myself with Apple Mail, I
> see x-mac-type, x-unix-mode, and x-mac-creator headers for the
> datafork portion of the email.  Obviously, the x-mac-type and x-mac-
> creator are somehow encoded type and creator codes, and the unix-mode
> is simply the file permissions.  Does anyone know how Apple is
> encoding these type and creator codes?

I do not know whether Apple Mail does the encoding the way Spotlight does,
but here it is:

<quote from Amit Singh's "Mac OS X Internals">
The four-character file type is converted to a four-byte (32-bit) integer,
each of whose bytes is the ASCII value of the corresponding file type
character. The ASCII values of "t", "b", "x", and "i" are 0x74, 0x62, 0x78,
and 0x69, respectively. Therefore, the file type to use while searching with
Spotlight is 0x74627869.
</quote>

Cheers,

Knut


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to