RhetTbull / macnotesapp

Work with Apple MacOS Notes.app from the command line. Also includes python interface for scripting Notes.app from your own python code.
MIT License
141 stars 6 forks source link

Q: Is there any way to unlock/access passworded notes? #31

Open richstokes opened 1 year ago

RhetTbull commented 1 year ago

Unfortunately there is not. There may be a private API to do this but I've not dug deeply enough into this to determine if so as I don't use password protected notes. You can determine if a note is password protected using the Note.password_protected property

RhetTbull commented 1 year ago

If a note is unlocked, macnotesapp can access the body of the note but it's locked the body will be empty when macnotesapp reads the note. I don't currently know a way to determine if a note is locked (other than the body being null) though as I mentioned above you can determine if the note is password protected.