In AppleScript, can you make a text field in a dialog box that accepts user input, and then use whatever the user inputs as a variable that can be called later in the script?


set dd to display dialog "What is your first name?" default answer "Michael00"
display dialog "Hi " & text returned of dd & ". Do you see how it works?"