AppleScript Studio Questoin!

Trip

Registered
Why does this not work?

display dialog "Thank you for using Docker!" buttons {"Quit"} default button 1 attached to window "Window1"
if the button_pressed is "Quit" then quit

Basicly I want a dialog to open (inside window1) and within the dialog will be some text, and a quit button. I then want it so that whenever a user clicks the "Quit" button then the program quits (duh!)...so is there another way to do this?
 
Hmm...maybe it would help if I could spell 'question' correctly in the title.
No matter, I found the answer at SpyMac.com. Thanks SpyMac members! :)
 
Back
Top