Re: Getting Multiple Returns From A Dialog
Re: Getting Multiple Returns From A Dialog
- Subject: Re: Getting Multiple Returns From A Dialog
- From: Bill White <email@hidden>
- Date: Tue, 11 Mar 2003 14:06:41 -0500
>
display dialog "TEXT" default answer "42" buttons {"one","two","three"}
>
set text1 to --text returned of the dialog
>
set button1 to --button returned of the dialog
You're close. Try this:
set thisDialog to (display dialog "TEXT" default answer "42" buttons {"one",
"two", "three"})
set text1 to text returned of thisDialog
set button1 to button returned of thisDialog
-- text1 is then "42" (if no other text was entered)
-- button1 is then "one" (if "one" was clicked)
HTH,
Bill
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.