I can read preferences from a domain, and I can read a single key deep, for example:
defaults read com.apple.Terminal "Window Settings"
However, I cannot dereference a key deeper than depth=1 with the defaults
command. For example, I want to read the Basic
under Window Settings
. I would expect to be able to do something like this:
defaults read com.apple.Terminal "Window Settings" Basic
It looks like defaults
only works with a fixed depth:
The domain/default pair of (com.apple.Terminal, Basic) does not exist
But surely I can use it to manipulate dictionaries? What utilities are available?