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

  • Prev by Date: Re: Display Dialog handling trouble
  • Next by Date: Re: Getting at some Hidden Clipboard Contents
  • Previous by thread: Re: Display Dialog handling trouble
  • Next by thread: Re: Display Dialog handling trouble
  • Index(es):
    • Date
    • Thread