For AlarmClockView to run the script messageDelay when a user presses Set Alarm, you need to make an event-to-script connection. You'll connect the clicked event of Set Alarm to the script messageDelay.
Drawing a connection
To connect them in a Composition Editor:
Deleting the unneeded connection
Because the event-to-script connection opens a message box once the specified time occurs, you no longer need the event-to-action connection between Set Alarm and the Message Prompter part.
To delete the connection:
After you finish work on the connections, the Composition Editor
displays: