Re: Naming a display dialog title?
Re: Naming a display dialog title?
- Subject: Re: Naming a display dialog title?
- From: "Gary (Lists)" <email@hidden>
- Date: Fri, 07 Jul 2006 10:52:22 -0400
"Brett Conlon" wrote:
> Hi all,
>
> With standard AppleScript, is it possible to name the display dialog title
> bar?
>
> While I'm at it ;-} other than setting the dialog wording, a max of 3 button
> names and icons from 0 to 2 are there any other functions possible?
>
> Is the width always fixed? As far as I tested, the depth can be as deep as you
> need (or as deep as your screen reveals).
>From the Standard Additions dictionary...
display dialog : Display a dialog box, optionally requesting user input
display dialog string -- the text to display in dialog box
[default answer string] -- the default editable text
[buttons a list of string] -- a list of up to three button names
[default button number or string] -- the name or number of the
default button
[with icon number or string] -- the name or ID of the icon to
display
[with icon stop/note/caution] -- or one of these system icons
[giving up after integer] -- number of seconds to wait before
automatically dismissing dialog
Result : dialog reply -- a record containing the button clicked and text
entered (if any)
That's all you get with 'display dialog'.
Side note...
Brett, as you're exploring user interfaces with AppleScript, this might be a
good time to consider the free software Smile. I'll say, briefly, why.
Speaking from my own herky-jerky experience, I really appreciated and
benefited from the "expose them as you need them" tools of Smile's total
AppleScript environment.
In this present case, not only is it fast and easy to reveal the scope of
any given command ('display dialog') by simply using the "Find
definition..." features of Smile, but you will find a wealth of
easy-to-implement Dialog controls which are simply not possible with
'display dialog' or 24U's not-free OSAX for presenting "dialogs".
You probably know where to get Smile, but in case other's do not, their
snazzy-looking beginning point is:
<http://www.satimage.fr/software/en/index.html>
--
Gary
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden