Here is the script I have to create a user name and password. It saves it in a folder as a text document that displays the username and password.
set fullname to text returned of (display dialog "ENTER YOUR FIRST AND LAST NAME" default answer "")
set username to text returned of (display dialog "ENTER YOUR DESIRED USERNAME" default answer "")
set pass to text returned of (display dialog "ENTER YOUR PASSWORD" default answer "")
set passverified to text returned of (display dialog "PLEASE VERIFY YOUR PASSWORD" default answer "")
if passverified is "" & pass & "" then
tell application "TextEdit"
activate
set myDoc to make new document at end
end tell
tell application "System Events"
keystroke "" & username & ""
key code 36
keystroke "" & pass & ""
end tell
tell myDoc
save myDoc in "Users:garrett:Documents:passwords:" & fullname & ""
quit
end tell
else
display dialog "Passwords do not match"
end if
Now, I want to create an applescript where you have to enter your username and password and it searches the folder for the text document that has the username and password in it. If it finds one, I’ll go from there. If, it doesn’t it will
display dialog "Please try again"
So can anyone give me a script to do that? Or maybe give me an easier way to do this.