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 " +
"privileges")!.executeAndReturnError(nil)
}
+3
source to share