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

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/


  • Prev by Date: Re: Snippet to remove an item from a list
  • Next by Date: Re: Snippet to remove an item from a list
  • Previous by thread: Re: without buttons
  • Next by thread: Script Editor 1.1 & raw event codes
  • Index(es):
    • Date
    • Thread