Re: Getting Multiple Returns From A Dialog
Re: Getting Multiple Returns From A Dialog
- Subject: Re: Getting Multiple Returns From A Dialog
- From: "Marc K. Myers" <email@hidden>
- Date: Tue, 11 Mar 2003 21:10:48 -0500
Date: Tue, 11 Mar 2003 13:02:04 -0500
To: email@hidden
From: Richard Simms <email@hidden>
Subject: Getting Multiple Returns From A Dialog
Hello all,
How would one go about getting multiple results from a dialog with
three buttons and a text entry box? I want to store the button
returned in a variable and the text returned in a variable.
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
To do it all in one line:
set {text1, button1} to (display dialog "Text" default answer "42"
buttons {"one", "two", "three"}) as list
Marc [03/11/03 9:09:44 PM]
_______________________________________________
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.