3 ms·
I wonder if it would be possible to get entries for hypercard in "magic byte" databases like https://freedesktop.org/wiki/Software/shared-mime-info/ https://fre
by jrochkind1 5y ago
I wonder if it would be possible to get entries for hypercard in "magic byte" databases like https://freedesktop.org/wiki/Software/shared-mime-info/ https://freedesktop.org/wiki/Software/shared-mime-info/
The work is figuring out if it's even possible, and what the bytes would be.
- duskwuff 5y ago> The work is figuring out if it's even possible, and what the bytes would be. Easy. 4 string STAK\xff\xff\xff\xff
- jrochkind1 5y agoOK, I guess now the work is getting it into the magic bytes databases! :)
- Someone 5y agoFTA: For instance, a stack file begins with a stack block (signified by the hexadecimal values, “53 54 41 4B,” which correspond to the ASCII characters, “STAK”), and the file is terminated by a tail block (signified by the ASCII characters, “TAIL”
- duskwuff 5y agoFun fact: the tail block contains the constant string "Nu är det slut…", Swedish for "this is the end".
- rvense 5y agoYou want the file type and creator code, but they're eaten along with the resource fork when you move the file to something that's not HFS, I think.