Re: Display Dialog handling trouble
Re: Display Dialog handling trouble
- Subject: Re: Display Dialog handling trouble
- From: Andrew Oliver <email@hidden>
- Date: Mon, 19 Mar 2007 01:02:43 -0700
On Mar 18, 2007, at 10:25 PM, W. Thomas Leroux wrote:
if warn_before_sending is "yes" then set the_reply to display dialog
"Is this working: " & "" buttons {"No", "Yes"}
if the_reply is "No" then
The result of 'display dialog' is not the name of the button clicked,
it's a record containing the name of the button, the text entered into
the edit field (if there is one), whether or not the dialog timed out
(if there was timeout), etc.
So what you need to do is get the 'button returned' of the result:
if warn_before_sending is "yes" then set the_reply to display dialog
"Is this working: " & "" buttons {"No", "Yes"}
if button returned of the_reply is "No" then
...
Andrew
:)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden