resource_dasm
resource_dasm copied to clipboard
Easier way to convert TEXT/styl to .rtf?
The data format of SilverCreator is a proprietary non-resource fork format, but in v1.5.1 and earlier it stored styled text in that file using "styl" data. However it seems the only way to convert a TEXT/styl pair with resource_dasm is to put it into a resource fork first, but that's super awkward. A SilverCreator file may have 100s of old TEXT/styl parings in it.
Maybe if --decode-single-resource could be specified twice, something like this (where the output name would also have to be specified, due to the ambiguity of two input files)
resource_dasm --decode-single-resource TEXT text.data --decode-single-resource styl styl.data OutputFile.rtf
Or this syntax would be a bit cleaner. If no output file is specified then stdout is assumed.
resource_dasm --decode-text-styl-pair text.data styl.data
I'm gonna have a try at this one. "--decode-text-styl-pair" seems the better way to go.
Wouldn't it be better to write a separate tool, like silvercreator_dasm
? SilverCreator looks a bit like HyperCard, which has its own tool (hypercard_dasm
). Especially since SilverCreator has more types of data than just text, so the tool might grow over time.