Community

SCI Programming => SCI Development Tools => Topic started by: ZvikaZ on May 06, 2020, 06:09:08 AM

Title: Extract all SCI scripts as regular text file
Post by: ZvikaZ on May 06, 2020, 06:09:08 AM
Hi.

Is there a tool to extract all SCI scripts as regular text files? (for example, to `grep` something in all of them)
I know I can open each script in SCICompanion, select all, copy, and paste in a new file.
But isn't there something that can do it once for all?

There is Tools -> Extract all resources, but it extract the scripts as binary patch files.

EDIT
===
I've explained my motivation in other post, with the specific use case that I need now.
However, I needed it also in the past, and was too lazy to ask ;-)
I think that it's useful, even if my specific use case now can be solved otherwise.

Title: Re: Extract all SCI scripts as regular text file
Post by: Kawa on May 06, 2020, 08:00:14 AM
Decompile, then grep through src/*.sc I'd say. That's where the decompiler puts it after all. 🤷
Title: Re: Extract all SCI scripts as regular text file
Post by: ZvikaZ on May 06, 2020, 09:19:18 AM
Decompile, then grep through src/*.sc I'd say. That's where the decompiler puts it after all. 🤷

Shame on me for not noticing that  ::)

Thanks
Title: Re: Extract all SCI scripts as regular text file
Post by: Kawa on May 06, 2020, 10:37:49 AM
Shaaame!