I am going to play a long series of elaborate pranks on my friend, but to do so, i need to know his password. I have access to his computer while it is unlocked, but he has (smartly) set up a required password any time that you want to change almost any settings. I've figured out that I might be able to simulate the password entry screen through Applescript. This is what i need to simulate:
I have figured out how to get the lock and group icon together in an alert or dialog. The bold message is available only through alert. All I need are the two text boxes. I'm experienced enough to figure the rest out on my own. Anybody have any idea how to do this?

I have figured out how to get the lock and group icon together in an alert or dialog. The bold message is available only through alert. All I need are the two text boxes. I'm experienced enough to figure the rest out on my own. Anybody have any idea how to do this?