Display dialog Return - Bug or Feature?
Display dialog Return - Bug or Feature?
- Subject: Display dialog Return - Bug or Feature?
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 11 Aug 2002 17:47:02 -0700
Has this always been around, or is it a new kink (feature of bug?) in OS X?
If you have a text field (default answer) in display dialog, and no default
button, then press Return on the keyboard (normally after entering some text
and not taking notice that the rightmost button is not a default button),
the text seems to disappear. So, usually, you'd re-enter the text and press
the correct button. [When there is a default button, of course, pressing
Return is equivalent to clicking the default button.]
But what actually happens when the text "disappears" is that you're typing a
carriage return. Then when you enter more text it's actually the second
paragraph of a 2-parapraph string. In fact, you could go on forever like
that, adding more paragraphs, each one becoming invisible after pressing
return, until you finally press a button.
'text returned' of the result gives you the whole thing, return included,
but users would always expect that only their last attempt - the only thing
visible - was recorded. This could lead to lots of trouble. Now if this is
really a feature, it could be quite handy at times, if users are suitably
directed But I rather expect that it's a bug which will be fixed, so i
wouldn't want to use it unless a Chris says that it's intended and will
remain for evermore.
To avoid the danger of getting unexpected results, I plan to use 'last
paragraph of text returned of result' whenever display dialog does not have
a default button, in future. I can't see how that will ever go wrong, even
if the result is "". But is this indeed a bug that will be fixed? How long
has this behavior been around?
--
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.