Screen Recording Tab in security settings via Applescript/ Javascript

Viewed 18

We're trying to jump to different security panes and anchors from our app. We found, the easiest and fastest way to achieve this, would be to use applescript or javascript.

I've got it up and working for the Accessibility-Anchor, using securityPane.anchors.byName("Privacy_Accessibility").reveal();

This opens to Security - Privacy - Accessibility.

But jumping to the Screen Recording doesn't work at all. Should be something like securityPane.anchors.byName("Privacy_ScreenRecorder").reveal();

I noticed on https://gist.github.com/rmcdongit/f66ff91e0dad78d4d6346a75ded4b751, that it's not available.

Also, using apple script to find out all possible anchors get name of every anchor in pane id "com.apple.preferences.security reveals only a few anchors, like Camera, Contacts etc, but none like Screen Capture or Screen Recording.

Is apple somehow preventing scripts to jump to these settings? And if so, where is this documented? Is there any way to jump to this setting via a script?

Thanks in advance!

0 Answers
Related