Skip to content

Instantly share code, notes, and snippets.

@chilcote
chilcote / suspect.py
Created July 5, 2024 01:04
return error strings for software update failures
#!/usr/bin/python3
import plistlib, sys
plist = "/System/Library/PrivateFrameworks/SoftwareUpdateMacController.framework/Versions/A/Resources/SUMacControllerError.loctable"
with open(plist, 'rb') as f:
d = plistlib.load(f)['en']
if len(sys.argv) == 1: