I just run a very simple NSAppleScript:
"do shell script \"echo command\" with administrator privileges"
However, I got error as below:
NSAppleScriptErrorNumber = "-2147450879";
But it works fine on my friend‘s mac, anybody know how to solve this problem.
5
0
2.6k