I'm happy to announce scriptview 0.2.0, a tool that shows you the source code of...

@TheQuinbox@dragonscave.space

I'm happy to announce scriptview 0.2.0, a tool that shows you the source code of compiled AppleScript files, on macOS, Linux and Windows. This does feel slightly weird for me because it's the first time I'm truly vibe coding something; Claude did practically all of the coding, and I directed, reviewed, pushed back, and read through endless amounts of old documentation and bytecode.
What it does:

  • Reads compiled scripts, bundles and applets, and matches osadecompile line for line on every script that ships with macOS and on 6,133 of 6,142 scripts from GitHub.
  • Rebuilds the source of run-only scripts from their bytecode. No comments, but the code comes back perfectly.
  • Reads classic Mac OS scripts back to AppleScript 1.0 in 1993, from resource forks, ._ files, MacBinary and BinHex. Current macOS refuses to open many of these.

The macOS builds are signed and notarized, so no Gatekeeper warnings.

Downloads: github.com/trypsynth/scriptvie

It's open source under MIT, and the docs folder has everything we learned about the format, much of which wasn't written down anywhere before. #AppleScript #macOS