Dateien hochladen nach „“

This commit is contained in:
xoy 2022-11-14 19:36:22 +00:00
parent 42f4784442
commit 4329462e85
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
try
do shell script "spctl --status"
do shell script "spctl --master-disable" with administrator privileges
display dialog "Assessment disabled!" buttons {"OK"} default button 1
on error
try
do shell script "spctl --status"
display dialog "Error!" buttons {"OK"} default button 1
on error
do shell script "spctl --master-enable" with administrator privileges
display dialog "Assessment enabled!" buttons {"OK"} default button 1
end try
end try