• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Display Dialog handling trouble
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Display Dialog handling trouble


  • Subject: Re: Display Dialog handling trouble
  • From: kai <email@hidden>
  • Date: Mon, 19 Mar 2007 10:52:52 +0000


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
  • Follow-Ups:
    • Re: Display Dialog handling trouble
      • From: "W. Thomas Leroux" <email@hidden>
References: 
 >Display Dialog handling trouble (From: "W. Thomas Leroux" <email@hidden>)
 >Re: Display Dialog handling trouble (From: kai <email@hidden>)

  • Prev by Date: Re: Display Dialog handling trouble
  • Next by Date: Re: Quark XPress and InDesign Questions (2 parter)
  • Previous by thread: Re: Display Dialog handling trouble
  • Next by thread: Re: Display Dialog handling trouble
  • Index(es):
    • Date
    • Thread