If you run this script:
do shell script "sudo -k" --clear any previous authentication
do shell script "ls" with administrator privileges
of course, you will be prompted for you password. If you run this from an administrative account and enter your password, it works. If, however, you run it from an account that is not the administrator and you enter your administrator’s password, it tells you the password is incorrect. If you enter the non-administrator’s password associated with the account, it will accept the password but you’ll receive notice that your account is not in the sudoers list and your action will be reported (?!). So, my question is: if the user is using a non-admin account and want the user to enter the admin password to confirm they can do something, how do you authenticate that password?
Jon