• 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: giving up
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: giving up


  • Subject: Re: giving up
  • From: Gil Dawson <email@hidden>
  • Date: Mon, 30 Jan 2012 19:43:34 -0800

Thanks, Everyone--

I'm not sure where I got the 2010 pdf file, but the information in it regarding  display dialog is the same as in the 2008 manual referenced on the Apple website.

The problem with both manuals is that they do not document the "giving up after" clause, nor the "gave up" property of the "dialog reply" record, which is useful for discriminating between whether the operator clicked a button or the "giving up after" time expired.

Matt Nueburg's Applescript: The Definitive Guide has an example showing how to use these elements of display dialog on page 337 of the First Edition.

Fortunately, as several of you pointed out, these elements are described in adequate detail in the Scripting Additions .sdef dictionary, along with a few other enhancements which are not in the books.

I really appreciate your help.

--Gil



On Jan 30, 2012, at 3:01 PM, Ronald Hofmann wrote:

Hi,

AppleScript Language Guide 2010-01-06.pdf 
although I'm not sure where you got this from, Apple offers on it´s developer pages the manual dated 2008-03-11, may be I wrong, anyway.

I found this on page 127 with following parameter description:

display dialog

Displays a dialog containing a message, one to three buttons, and optionally an icon and a field in which the user can enter text.

<page127image15888.png>

Syntax

display dialog 
default answer text
hidden answer boolean 
buttons list
default button labelSpecifier
cancel button labelSpecifier
with title text
with icon resourceSpecifier
.
.
.
. continued

Greetings from Switzerland, Ronald Hofmann

---


For an additional example, see the Examples section for the try (page 209) statement. display dialog

Displays a dialog containing a message, one to three buttons, and optionally an icon and a field in which the user can enter text.

<page127image15888.png>

Syntax

display dialog text default answer text
hidden answer boolean buttons list
default button labelSpecifier cancel button labelSpecifier with title text

with icon resourceSpecifier

required optional optional optional optional optional optional optional 

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: 
 >giving up (From: Gil Dawson <email@hidden>)

  • Prev by Date: re: giving up
  • Next by Date: Re: giving up
  • Previous by thread: Re: giving up
  • Next by thread: Re: giving up
  • Index(es):
    • Date
    • Thread