Were you to attempt something like this in AppleScript
I started down the path of building some sort of PRM in org-mode because I couldn’t find anything that worked the way I wanted. I did briefly look at Apple’s Contacts app, and also at Cardhop, which builds on top of your Contacts database but still makes some assumptions about how good you are at all at remembering to reach out to people. I also looked at Monica, an open source PRM. The promising part of Monica is its API. The web UI itself shows comprehensive data for each contact, but does not do anything in the way of bulk editing and has no automation at all. It’s laborious to bootstrap. ...