Do NSAppleScript app store rights (original: "execute shell commands script \" sudo "?

For example, my application uses the following command with the OS handling the popup warning to prompt for an administrator password to authenticate as root. Is there a right to allow me to run this from the sandbox?

    @IBAction func clearFonts(sender: NSButton) {

    NSAppleScript(source: "do shell script \"sudo atsutil databases -remove;sudo atsutil server -shutdown\" with administrator " +




source to share

1 answer

you cannot do this if the application is isolated, arbitrary script execution is prohibited by the sandbox. Allowed sudo




All Articles