an app for my own personal use, that i wrote for myself only, to scan my mail directories located here:
etc. when i do "getcatinfobulk" i get "afpAccessDenied"
i only need read access. I added my app into "whole disk access" in system prefs->security->privacy, but still get same error
AFAIK, it is not possible, for obvious data security risk.
In the case of your own app, may be that would not be a problem. But if it were possible for it, it could be possible for others, which would be a real security weakness.