Re: without buttons
Re: without buttons
- Subject: Re: without buttons
- From: Arthur J Knapp <email@hidden>
- Date: Wed, 11 Jul 2001 10:55:05 -0400
>
Date: Tue, 10 Jul 2001 18:41:26 -0400
>
From: Robert Poland <email@hidden>
>
Subject: without buttons
>
Display Dialog "Text" giving up after 2 without buttons
>
>
Am I mistaken in thinking that "without buttons" should yield a
>
window without buttons?
That is mistaken. The dictionary for Standard Additions lists
all available parameters of the display dialog command. 1, 2 or
3 buttons are required.
>
All I get is a single button labeled "False".
That's interesting. When used as part of a parameter, "with" and
"without" are synonymous with true and false, as in:
command with parameter
command without parameter
are equivalent to
command parameter true
command parameter false
The "buttons" parameter is expecting a list of strings. When you
say, "without buttons", the compiler must be trying to coerce the
parameter in this way, (this is isn't real code, of course):
without buttons -- What you typed ...
buttons false -- is the same as this parameter label/value.
buttons (false as list) -- Coercion to desired type.
buttons {"false"} -- Display dialog will corece each item
-- to a string, if possible.
>
Do I need one more OSAX to make this work?
Your best bet would be to check out MacScripter's scripting addition
listings:
<
http://osaxen.com/index.php?keywords=interfacefolder>
Dialog Director allows for very elaborate dialog creations:
<
http://www.hylight.demon.co.uk/DialogDirector/DialogDirector.html>
Arthur J. Knapp
http://www.stellarvisions.com
mailto:email@hidden
Hey, check out:
http://www.eremita.demon.co.uk/scripting/applescript/