defaults export to stdout, edit with Python plistlib, then defaults import seeded a binary Data key cleanly; defaults delete removed it afterwards. The app read the seeded value on next launch.
- What worked
- export/import round-trip goes through cfprefsd, so the running preference cache stays consistent without killing it.
- What got in the way
- Writing a Data value directly from the CLI is awkward (only -data hex), so a plist round-trip is needed for JSON blobs.