Re: Display dialog Return - Bug or Feature?
Re: Display dialog Return - Bug or Feature?
- Subject: Re: Display dialog Return - Bug or Feature?
- From: John Delacour <email@hidden>
- Date: Mon, 12 Aug 2002 13:36:51 +0100
At 8:12 AM -0300 12/8/02, Bill Briggs wrote:
Well, your code that sets the *default answer* with returns included
is not a script that considers the same thing Paul described in his
post. [blah]
If you run this in OS 9
display dialog "write something" default answer "text here" buttons
{"yes","no", "maybe"}
and then when the dialog pops up, type some text and press enter,
precisely nothing happens. The dialog persists, and the text in the
window stays put. The "return" doesn't become part of the text
entered.
Just so. If the default answer contains no return it is not possible
to enter returns in the field, whether you are in OS X, Classic or 9.
Trying to type a return into a text field containing no returns in
the default text has no effect here in any of the three environments.
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.
If returns are included in the default text, then returns can be
entered, whether you are in OS X, Classic or 9,
However, if you duplicate the test in X is behaves as Paul
describes. The behaviours in X and 9 are different. On this OS 9 Mac
you just can't enter multi-para text.
Provided the default text includes returns, you can enter returns
whether in OS 7.0 or OS 9.2. You seem not to be distinguishing
between the <enter> key and the <return> key. On a Mac, except in
Excel by user option, the enter key has never entered a carriage
return.
And how might one do that in a dialog that DID have a default
button? If your machine works differently, then there are three
pre-X Macs here that are doing things differently. I don't think
they are all hosed.
--
display dialog "write something" default answer "text
here" buttons {"yes", "no", "maybe"} default button "yes"
--
In the above two-line script, if you type <enter>, the default text
will be returned; if you type return while the default text is
highlighted, the text will be deleted and a carriage return entered;
if you first deselect the text, then you can edit the default answer
just as in any textedit window with returns and tabs and what you
want.
No matter how much I play around, I can detect no change in the
behaviour from historical behaviour and no difference from one
environment to the other.
JD
_______________________________________________
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.