I've seen various examples that show in the final loop you use eg. DO UNTIL FN BUTTON and this closes the application when you click the mouse in the middle of the program, but how do you have your program act like a standard Macintosh application, in other words, keep the window open until the user clicks on the small square in top left corner of the window?