Jinmo / applescript-disassembler

A simple run-only applescript disassembler
MIT License
112 stars 19 forks source link

SCPT format description #7

Open Keks1993 opened 1 year ago

Keks1993 commented 1 year ago

Hi. Thanks for great tool. Could you provide more info about the structure of scpt-files, saved with the 'runonly' flag and in regular way.

Jinmo commented 1 year ago

Hello, as I understood, scpt is a serialization format that supports various data types, and code blocks are stored in data blocks (I might be wrong). Using engine.fasparser, you can see the structure of scpt file.

When run-only flag is specified, cmdBlock is not appeared in scpt file, and I guess it serves as source mapping/etc.