This is a project I am currently working on for work, to enable employees to allow me to interact with their machines remotely for a brief amount of time before toggling off the option to promote security.
I have successfully been able to toggle the Screen Recording settings of BetterSnapTool with my script, and have managed to get there through my research online.
My research includes Stack Overflow for a Script that would list Anchors and Processes in a given Settings Pane (to navigate the Settings application), ChatGPT for general AppleScript questions, and lots of general googling to tackle syntax issues I faced.
Now, I have to migrate it from my personal laptop to the work environment. That would include making it more “flexible”, as the app just toggles the switch on the first Application in the list… it needs to be able to inspect what elements are what, and decide if that is the correct application to toggle.
From there, I may need to make it a Bash script, as I believe Jamf has difficulties executing Applescripts? Or maybe I can just save the script on the computer and then use a bash script to execute it? Only time will tell.