Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

gumby777

macrumors newbie
Original poster
Sep 22, 2007
8
0
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
 

Mekanik561

macrumors newbie
Feb 10, 2007
8
0
You could build something in Applescript Studio (Xcode) that would look more like the system's login, but that might be too complicated depending on what you want to do.
 

gumby777

macrumors newbie
Original poster
Sep 22, 2007
8
0
How would I do this with just using script editor (again keeping in mind that I don't know very much about this).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.