macvillage.net
Registered
I wonder if anyone knows how to do this:
I didn't want to give anyone the admin password to switch the startup disk, but they need to do it, so the easy solution is an apple script.....
So, here is what I wrote:
tell application "Terminal"
do script with command "sudo /usr/sbin/nvram boot-device=ide1/@0:5,\\:tbxi"
end tell
Ok, but how do I give the password? I don't want to do this as a shell script since anyone can read the password, since I can compile as "read only" it is at least a little secure.
SU maybe? But then how do I set that up?
I am not to good with all this so detailed instructions are good.
Anyone know?
I didn't want to give anyone the admin password to switch the startup disk, but they need to do it, so the easy solution is an apple script.....
So, here is what I wrote:
tell application "Terminal"
do script with command "sudo /usr/sbin/nvram boot-device=ide1/@0:5,\\:tbxi"
end tell
Ok, but how do I give the password? I don't want to do this as a shell script since anyone can read the password, since I can compile as "read only" it is at least a little secure.
SU maybe? But then how do I set that up?
I am not to good with all this so detailed instructions are good.
Anyone know?