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 10:12:59 +0100
At 5:47 pm -0700 11/8/02, Paul Berkowitz wrote:
>
Has this always been around, or is it a new kink (feature of bug?) in OS X?
It's a feature, not a bug and it's always been like that, in spite of
what Bill says. You're not actually suggesting anyone's looked at
revising the DD osax in the past ten years are you? :-) I've just
tried the script below in both X and 9 and there is absolutely no
difference. When there is no default buttton, the return key behaves
just as it would in any edit field and it's been like since system 7.
How else would it be possible to give an answer of more than one
line, as is often needed? The DD dialog also allows up to 255
characters in the prompt and this will wrap (unlike choose from
list), so you have plenty of scope. A long line in the editing field
will wrap, so the only way to force the window wider is to add text
to buttons.
(* Users of MacSoup etc will need to unify the long line bewlow *)
set r to return
set s to (ASCII character 202) & r
set btns to {"Need a wide window", "Cancel", "OK"}
set p to r & "Click the _LEFT_ARROW_ to DESELECT
the text; then edit your answer and
click 'OK'"
set a to "a
b
c
" & r
--One line to END
tell me to set dd to display dialog p default answer (s & a) buttons btns with icon 128
--END
-- Then parse the answer as required
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.