• 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
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >display dialog (From: Scott Haneda <email@hidden>)

  • Prev by Date: Re: tell a script to tend to system process for X amount of time?
  • Next by Date: Re: Save image from raw data class variable
  • Previous by thread: display dialog
  • Next by thread: Re: display dialog
  • Index(es):
    • Date
    • Thread