I'm familiar with running the AppleScript command:
do shell script "sudo spctl --master-disable" with administrator privileges
to allow the ability in Security to select
Anywhere but is there a way in AppleScript to detect if
spctl is enabled or disabled?
Running the do shell with:
do shell script "spctl --status"
will throw a Script Editor in Script Editor:
Is there a way to get the
status without it throwing an error?