do shell script as Root
I created this script which runs in a terminal but not as a script because I do not know how to enter the root password automatically.
do shell script "hwprefs cpu_nap=false"
This returns message you need to be root so I added
do shell script "sudo hwprefs cpu_nap=false"
But am not sure how to add the password after that.
Thanks for any suggestions