• 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: Display dialog Return - Bug or Feature?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Display dialog Return - Bug or Feature?


  • Subject: Re: Display dialog Return - Bug or Feature?
  • From: Paul Berkowitz <email@hidden>
  • Date: Mon, 12 Aug 2002 08:13:37 -0700

On 8/12/02 5:36 AM, "John Delacour" <email@hidden> wrote:

> At 5:47 pm -0700 11/8/02, Paul Berkowitz wrote:
>> But what actually happens when the text "disappears" is that you're typing a
>> carriage return.
>
> If I run your script exactly as above, this is simply not the case;
> nothing at all happens, and it impossible to enter a carriage return
> in the field.

What OS are you using and/or what have you done to it? That is exactly what
I'm saying, and exactly why I wrote in. What you described as being "always
like this since OS 7" was completely different from what I described - i
didn't get up to any of those tricks of pre-setting any carriage returns in
the default answer. I thought my description was quite clear, but if need
to be clearer, please follow these instructions exactly. Do not add
anything. OK:

display dialog "Enter x, type return, enter x, click OK." default answer ""
buttons {"Thinking", "Don't Cancel", "OK"} with icon 1

set x to text returned of result



Do what it says. What's your result, and what OS/As are you using?
In OS 10.1.5, AS 1.8.3, the result is


"x
x"



(In reply to whether any changes have been made to display dialog, several
changes have occurred in X: there's a bug in that default answers are not
pre-selected, and there were several bugs to do with the prompt getting
truncated which got fixed in AS 1.8/OS 10.1.2. There's still another bug to
do with icons overrunning buttons when it's one line long, three buttons and
no default answer.)

If you want to see the other bug, run:

display dialog "A single line with 3 buttons and an icon." buttons
{"Thinking", "Don't Cancel", "OK"} with icon 1


--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Display dialog Return - Bug or Feature?
      • From: John Delacour <email@hidden>
References: 
 >Re: Display dialog Return - Bug or Feature? (From: John Delacour <email@hidden>)

  • Prev by Date: Re: Display dialog Return - Bug or Feature?
  • Next by Date: Display dialog Return - Bug or Feature?
  • Previous by thread: Re: Display dialog Return - Bug or Feature?
  • Next by thread: Re: Display dialog Return - Bug or Feature?
  • Index(es):
    • Date
    • Thread