realbasic-nug
[Top] [All Lists]

Re: AppleDouble and ResourceFork

To: "REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>" <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: AppleDouble and ResourceFork
From: Knut Lorenzen <RBNUG at fischerappelt dot de>
Date: Thu, 31 Aug 2006 20:51:46 +0200
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Thread-index: AcbNLoICwLxyJDkhEdukdQAWy6Mphg==
Thread-topic: AppleDouble and ResourceFork
Chris Jett schrieb dereinst (am 31.08.2006 20:00 Uhr) via
chris at jettfuel dot net:

> 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>


<Prev in Thread] Current Thread [Next in Thread>