Answer by SkRevo for Giving Screen Recording permissions to a shell script...
Have been working on the same thing and finally figured it out after much digging and testing.I noticed in the CoreServices there is a launchservicesd app. I added this to Screen Recording permissions...
View ArticleGiving Screen Recording permissions to a shell script called by launchd
Given a shell script that calls the macOS screencapture utility, a proper screenshot (meaning, a full capture of what is on the screen, including any application windows visible) is produced when...
View Article
More Pages to Explore .....