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>) |
|