Re: Display Dialog handling trouble
Re: Display Dialog handling trouble
- Subject: Re: Display Dialog handling trouble
- From: "W. Thomas Leroux" <email@hidden>
- Date: Tue, 20 Mar 2007 00:07:52 -0400
Thanks everyone for the help! In the end, I followed Kai's suggestion
of using the boolean class. I'll keep poking at it.
Thanks again!
Thomas
On 3/19/07, kai <email@hidden> wrote:
On 19 Mar 2007, at 10:40, I wrote:
> I've inserted some initial code to set the variables
> 'warn_before_sending' (as boolean, rather than string) and
> 'the_reply'.
I should have taken account of the fact that 'the_reply' was intended
to be the result from an intermediate dialog. However, since the
final dialog is invoked only if the previous reply was "Yes", it's
hardly necessary to include the variable.
So the code might simply be:
---------------------
-- initial setup code (not included in original) --
set warn_before_sending to true (* or false *)
-- dialog routine --
if warn_before_sending and "Yes" is button returned of ¬
(display dialog "Is this working?" buttons {"No", "Yes"}) ¬
then display dialog "UPDATING: Yes"
---------------------
---
kai
_______________________________________________
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
--
All about me!
http://www.leroux.ca
_______________________________________________
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