set input to text returned of (display dialog "Enter a number:" default answer "") as integer