MacOS – How are Notes Preferences Stored in MacOS

command linemacosnotes.app

Does the Mac Notes app store its preferences in a plist somewhere, or does it have a different method of storage? It doesn't seem to use ~/Library/Preferences/com.apple.notes as most system apps do.

I'm hoping to find a method to script its settings programmatically (i.e. defaults write or similar).

Update

As Alexander noted, Notes is sandboxed, and stores some data accessible via defaults [read|write] com.apple.Notes (case sensitive). However the preference pane settings I'm looking for (specifically the New notes start with setting) don't seem to be saved there. I'm hoping someone else can find where that might be kept.

Best Answer

Notes.app is sandboxed.

Its sandbox is ~/Library/Containers/com.apple.Notes/

Its preference list can be found at ~/Library/Containers/com.apple.Notes/Data/Library/Preferences/com.apple.Notes.plist