Hey guys,
I am having a hell of a time trying to Sudo with an AppleScript.
Heres the code...
do shell script "sudo ifconfig en0 down; sudo ifconfig en0 up"
When executed, it says AppleScript Error password: password: . Any ideas how this can be done to automate the password? I have tried everything I know, and to no avail. Oh, thanks for your help in advance
.
I am having a hell of a time trying to Sudo with an AppleScript.
Heres the code...
do shell script "sudo ifconfig en0 down; sudo ifconfig en0 up"
When executed, it says AppleScript Error password: password: . Any ideas how this can be done to automate the password? I have tried everything I know, and to no avail. Oh, thanks for your help in advance