Skip to content

Instantly share code, notes, and snippets.

Avatar
:shipit:
Continuously Integrating

Mike Arpaia marpaia

:shipit:
Continuously Integrating
View GitHub Profile
@gregneagle
gregneagle / fancy_defaults_read.py
Last active Mar 19, 2021
fancy_defaults_read.py: Reads a preference, prints its value, type, and where it is defined.
View fancy_defaults_read.py
#!/usr/bin/python
import os
import sys
from CoreFoundation import (CFPreferencesAppValueIsForced,
CFPreferencesCopyAppValue,
CFPreferencesCopyValue,
kCFPreferencesAnyUser,
kCFPreferencesAnyHost,