how would i have 2 dialog boxes and two text inputs in a scirpt like below so to appear like the normal username and password in mac os x. I barely know anything about this so you will have to describe it to me.
repeat
display dialog "Username:" default answer "" buttons "Ok" default button "Ok"
if text returned of result is not "Administrator" then
display dialog "Incorrect username" buttons "Ok" default button "Ok"
else
set theAnsr to text returned of result
set ansr1 to the theAnsr
display dialog "Password:" default answer "" buttons "Ok" default button "Ok" with hidden answer
set theAnsr to text returned of result
set ansr2 to the theAnsr
set the clipboard to ansr2
exit repeat
end if
end repeat
repeat
display dialog "Username:" default answer "" buttons "Ok" default button "Ok"
if text returned of result is not "Administrator" then
display dialog "Incorrect username" buttons "Ok" default button "Ok"
else
set theAnsr to text returned of result
set ansr1 to the theAnsr
display dialog "Password:" default answer "" buttons "Ok" default button "Ok" with hidden answer
set theAnsr to text returned of result
set ansr2 to the theAnsr
set the clipboard to ansr2
exit repeat
end if
end repeat