I'm trying to make an applescript that a box will pop up asking for an amount of minutes. then it will set the amount of minutes entered to the delay before starting the second part of the scrpt.
so delay = number entered
display dialog "Hello, world!" with title "Hello" default answer "5"
set inSeconds to (text returned of result) * 60
delay inSeconds
-- start part 2 here