AppleSingle and AppleDouble are
file formats developed by Apple Computerin order to store Mac OS"dual-forked" files on the Unixfilesystem being used in A/UX, Apple's first Unix-like operating system. AppleSingle combined both file forks and the related Finder meta-file information into a single file, whereas AppleDouble stored them as two separate files. Support for the formats was later added to Unix software such as NFS and MAE, but they saw little use outside this small market.
AppleSingle is similar in concept to the more popular
MacBinaryformat, in that the resource and data forks are combined together with a header containing the Finder information. In fact, the format is so similar there is no obvious reason why Apple did not simply use MacBinary instead, which by that point was widely known and used. The format was later assigned the MIME typeapplication/applefile.
AppleDouble leaves the data fork in its original format, allowing it to be edited by normal Unix utilities. The resource fork and Finder information, both "private" and lacking editors under Unix, were combined into a second file. A MIME type was also assigned to AppleDouble, multipart/appledouble. For sending to an AppleDouble un-aware system, the file was generally encoded using
Base64, as opposed to being converted to AppleSingle.
Mac OS X, AppleSingle and Double had little presence in the Mac market, due largely to the small market share of A/UX. Nevertheless they did force various file compressionvendors to add support for the formats, and confuse future MacBinary versions.
Mac OS X revived the use of AppleDouble; on file systems such as NFS and
WebDAVthat don't natively support resource forks, Finder information, or extended attributes, that information is stored in AppleDouble format, with the second file having a name generated by prepending "._" to the name of the first file (thus, this information acts a hidden filewhen viewed from a non-apple Unix-based operating system).
* [http://users.phg-online.de/tk/netatalk/doc/Apple/v1/ Applesingle and AppleDouble format internals] - from the original A/UX documentation
* [http://rfc.net/rfc1740.html RFC 1740 - MIME Encapsulation of Macintosh files] - contains information on MIME types and a little on AppleSingle/Double
* [http://sourceforge.net/projects/macbinconv Mac Binary Converter] , an open source tool for converting between different Macintosh file encodings.
* [http://search.cpan.org/~jflournoy/Mac-AppleSingleDouble-1.0/ Mac::AppleSingleDouble] , a Perl module for reading AppleSingle and AppleDouble files
Wikimedia Foundation. 2010.