-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RSRC file not reading correctly in Windows? #5
Comments
The file that you've uploaded seems to be an AppleDouble file, not a resource file. AppleDouble files contain a file's resource fork (and some extra Macintosh metadata, like the type and creator code), but the format is not the same as a raw resource file, so the Unfortunately I don't know of any Windows tools that can extract the resource fork data from an AppleSingle/AppleDouble file. On Mac I use the command-line According to this guide from the Emaculation website, the Windows tool HFVExplorer can work with AppleDouble files. Perhaps it has an option to extract the resource data? I haven't tried it myself though, as I mostly work under OS X. I might look into adding native support for AppleSingle/AppleDouble files into the |
I wrote some python that can parse AppleDouble format: https://gist.github.com/sfuller/720ea2ef5917ef6c6d20271b0bd56ce5 import appledouble
with open('double.rsrc', 'rb') as f:
double = appledouble.parse(f) You can then iterate through double.entries to find the resource_fork entry and pass the data of that entry into python-rsrcfork. |
for every .rsrc file I try to open, I get the following error:
rsrcfork.api.InvalidResourceFileError: The data offset (2134016) should point exactly to the end of the file header (256)
example file: https://drive.google.com/open?id=1gpn5mj5os0vwvXcfpVrtlCfs1WNkY_WU
The text was updated successfully, but these errors were encountered: