Macintosh resource file
From Just Solve the File Format Problem
(Difference between revisions)
Ross-spencer (Talk | contribs) (Added links to some helper utilities and samples on GitHub) |
m (Add Kaitai Struct schema) |
||
(One intermediate revision by one user not shown) | |||
Line 3: | Line 3: | ||
|subcat=Resources | |subcat=Resources | ||
|extensions={{ext|rsrc}}, {{ext|dfont}}, others | |extensions={{ext|rsrc}}, {{ext|dfont}}, others | ||
+ | |kaitai struct=resource_fork | ||
}} | }} | ||
The '''Macintosh resource file''' format was used by the Resource Manager in Mac OS Classic for storing resources used by Mac OS Classic applications as well as file associations and executable code. Traditionally, this format is used in the [[Resource Fork]] of a file on the [[HFS]] and [[HFS+]] file systems; however, when resource files are still used in Mac OS X applications, the same format is used in a file with the extension .rsrc. | The '''Macintosh resource file''' format was used by the Resource Manager in Mac OS Classic for storing resources used by Mac OS Classic applications as well as file associations and executable code. Traditionally, this format is used in the [[Resource Fork]] of a file on the [[HFS]] and [[HFS+]] file systems; however, when resource files are still used in Mac OS X applications, the same format is used in a file with the extension .rsrc. | ||
Line 17: | Line 18: | ||
== Sample files == | == Sample files == | ||
− | * | + | * {{DexvertSamples|archive/rsrc}} |
== References == | == References == |
Latest revision as of 17:53, 26 December 2024
The Macintosh resource file format was used by the Resource Manager in Mac OS Classic for storing resources used by Mac OS Classic applications as well as file associations and executable code. Traditionally, this format is used in the Resource Fork of a file on the HFS and HFS+ file systems; however, when resource files are still used in Mac OS X applications, the same format is used in a file with the extension .rsrc.
See Resource Fork for general information about Macintosh resource forks.
Contents |
[edit] Format details
A resource has a four-character type code, an ID number, an optional name, and data. The type code is generally unique to the type of data stored within, but this may not be the case with application-specific formats.
[edit] Software
[edit] Sample files
[edit] References
- Resource fork (Wikipedia)
- More Macintosh Toolbox (format is described on page 1-121 to 1-125)
- Description of the file format from the KSFL wiki
- The White Files: Mac OS Guides: Resources
- Mac OS X Resource Fork and Command Line Tips
[edit] See also
- Kaitai structs for a few resource fork files on [Macintosh resource file GitHub].
- Official Kaitai MacOS Structs.
- RSRC dump pure Python utility for reading resource data.
- Resource-fork hashtag on Github.