sudo root Password Prompt
I did this through the pmset Unix command, like this:
widget.system("/usr/bin/sudo pmset repeat wake MTWRFSU " hours+":"+minutes":00", null);
I am forced to use sudo, because OS X's security settings block the widget's access to pmset. The issue I have is that since the sudo command returns a password prompt in the Terminal (in the Unix console), on the user side nothing happens, when they use the widget. The whole process is cancelled due to an invisible password request.
The question I am asking is, is there a way to prompt the user for the root password through OS X's default user password dialog box, instead of prompting through the background running Unix console? Is there a Unix or AppleScript command that does this?
And if there isn't, is there a way to send password information (that was entered in the widget) directly to the Unix console?
iMac (Intel Core 2 Duo), Mac OS X (10.5.7)