set userName to display dialog "What's your name?" default answer "Name" buttons {"Cancel", "OK"} default button 2
if the button returned of the result is "OK" then display dialog "Hi there, "
В конце, где написано Привет, я хочу, чтобы он сказал после ввода пользователя. Есть ли способ сделать это?