Re: Naming a display dialog title?
Re: Naming a display dialog title?
- Subject: Re: Naming a display dialog title?
- From: Jay Louvion <email@hidden>
- Date: Fri, 07 Jul 2006 16:34:38 +0200
- Thread-topic: Naming a display dialog title?
Title: Re: Naming a display dialog title?
On 7.7.2006 3:07, entity "Brett Conlon" <email@hidden> spake thus:
> 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).
>
> Cheers,
>
> Coj
>
My honest answer would be never forget to check out the AS dictionnaries (accessible from the Script Editor’s File menu), in this case “Standard Additions” that offers quite a bit of info such as the answer to your first question:
display dialog v : Display a dialog box, optionally requesting user input
display dialog string : the text to display in the dialog box
[default answer string] : the default editable text
[hidden answer boolean] : Should editable text be displayed as bullets? (default is false)
[buttons list of string] : a list of up to three button names
[default button number or string] : the name or number of the default button
[cancel button number or string] : the name or number of the cancel button
--> [with title string] : the dialog window title
[with icon number or string] : the resource name or ID of the icon to display…
[with icon stop/note/caution] : …or one of these system icons…
[with icon file] : …or an alias or file reference to a ‘.icns’ file
[giving up after integer] : number of seconds to wait before automatically dismissing the dialog
→ dialog reply : a record containing the button clicked and text entered (if any)
As for buttons go, no, only three max. The icons, though can be set by specifying the path to an .icns file (if you bundle your script/app, you can even set the icns file inside your script/app and refer to it that way.)
I think the width is fixed, but someone with more experience should be answering that. The depth is according to your input. By adding “& return ” ’s to the text you wish to display you can make the window higher and stay empty.
If you want something really great to play with and make some great dialogs (and progress bars, why the h**l hasn’t Apple put that in the Standard Additions boggles me), get yourself 24U Appearance Osax – a great buy.
HTH,
Best,
j.
Jay Louvion
Studio Casagrande
3, rue Müller-Brun
1208 Geneva
T+4122 840 3272
F+4122 840 3271
skypeme:
jaylouvion
www.studiocasagrande.com
P Please consider the environment before printing this email.
_______________________________________________
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