I’m creating an utility that wants System Occasions in addition to entry to particular person apps by AppleScript. Once I entry an utility for the primary time, it should set off a dialog asking for permission.
Nonetheless, if I disable the setting it should merely fail, however not re-trigger that dialog. This isn’t an actual subject, besides that I constructed an onboarding move that may put together the consumer for the upcoming dialog after which (ought to) set off the dialog, so the primary time consumer can allow this setting totally understanding what it is goal.
There isn’t a method for me to check the “new consumer” state of affairs, as I haven’t got any method to fully reset these settings. I don’t know if the dialog would actually set off for a brand new consumer except I begin with a totally new machine.
I did attempt tccutil
, nevertheless it appears to be buggy and/or deserted. I wanted to put in Python 2.7 to make it work after which most instructions gleaned from the web like tccutil reset All com.myapp.MyApp
usually are not acknowledged (tccutil: error: unrecognized arguments: All com.myapp.MyApp
). There are additionally fairly just a few warnings in regards to the instrument not working and even partially bricking the OS by way of permissions, so I am unsure I ought to persist.
I attempted eradicating all situations of the applying and restarting the machine. It should nonetheless checklist the applying in Automation.
How can I fully reset these permissions so they are going to be requested once more on the identical OS set up as if I used to be working Automation on a given utility from my utility for the primary?