Re: display dialog
Re: display dialog
- Subject: Re: display dialog
- From: Barry Wainwright <email@hidden>
- Date: Thu, 17 Mar 2005 10:57:14 +0000
On 17/3/05 10:30 am, "Scott Haneda" <email@hidden> wrote:
> I am using this, and I am not sure how correct it is, but it does work for
> me:
>
> property theCopy : ""
>
> repeat while theCopy is ""
> display dialog "SMS?:" buttons {"Cancel", "OK"} with icon note ¬
> default button 2 default answer theCopy
> set the theCopy to text returned of the result
> end repeat
>
> First, you can see my repeat loop is an attempt to force entry of text, is
> there a better way?
Maybe, but that's the method I always use. You can build the display dialog
into the repeat test:
Repeat while text returned of (display dialog "abc" default answer
"xyz") is ""
End repeat
But there seems to be no way fo getting the answer that was returned when
the loop exits!
>
> Second, the text input area only allows one line, is there a way to make it
> larger, maybe 10 lines tall?
Yes.
Display dialog "abc" default answer "xyz" & return & return & return
--
Barry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden