Wow, wow, wow. This is effectively what I was asking for here: Export PDF Highlights and Annotations to Obsidian?
I naively hope, that the DT team eventually build something like this into the app. In the meantime perhaps we could do something reduce the maintenance burden? What would happen if put all of the applescript in Github and then made it accessible under a license like CreativeCommons?