Which user is AppleScript using when executing scripts
问题 • Here is the script to be executed via AppleScript: bash-3.2$ cd /Users/jack/Desktop/ bash-3.2$ ls -l | grep static -rwxrwxrwx 1 jack admin 65 5 May 08:10 static-routes.sh bash-3.2$ cat static-routes.sh #!/bin/bash sudo route -n add -net 192.168.3.0/24 172.16.254.134 ~ • AppleScript contains the following: do shell script "~/Desktop/static-routes.sh" • When executing the script from within an AppleScript, by clicking on "Run" button, pop up window saying: Script Error sudo: a terminal is