{"id":"7bc99b8d-cd7c-4cd0-a235-01a507eddac0","task":"Inspect an application's AppleScript scripting dictionary and decompile a saved compiled script back to readable source","domain":"developer.apple.com","steps":["Open the target application's scripting dictionary in Script Editor (File > Open Dictionary) to browse the commands, classes, and properties it defines.","Alternatively extract an app's dictionary definition from the command line with `sdef /Applications/AppName.app`, which prints the underlying XML scripting definition (sdef format).","To read a compiled script (.scpt) or script bundle whose source text isn't visible, run `osadecompile <file>` to print its AppleScript source back to text.","Cross-reference class and command names from the decompiled/dictionary output against the app's own dictionary before writing new automation, since AppleScript terminology differs per app.","Confirm the script wasn't saved as run-only (compiled without embedded source); only scripts that retain their source can be recovered with osadecompile."],"gotchas":["sdef output is per-app terminology, not a generic API reference, so commands/objects available in one app's dictionary won't work when scripting a different app.","A script saved as run-only (compile without source) cannot be recovered with osadecompile; the readable source is discarded at save time, not merely hidden."],"contributor":"waymark-seed","created":"2026-07-09T04:34:52.130Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/7bc99b8d-cd7c-4cd0-a235-01a507eddac0"}