• 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: Formatting Text When Responding to a Dialog Box
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Formatting Text When Responding to a Dialog Box


  • Subject: RE: Formatting Text When Responding to a Dialog Box
  • From: Mark Workman <email@hidden>
  • Date: Wed, 25 Jan 2012 13:48:30 -0500
  • Thread-topic: Formatting Text When Responding to a Dialog Box

Would using "line one of text" & (ACSII character 10) & "another line" do what you want?



From: "Robert W. Young" <email@hidden>
To: email@hidden
Subject: Formatting Text When Responding to a Dialog Box

When I run the following script:

tell application "Finder"
set theText to text returned of (display dialog "What address do you want to display?" default answer "")
display dialog theText
end tell

I would like to see the text displayed as:
1234 Oak Street
Some City, Some State 12345

Using the 'Return' when inputting the text closes the dialog window rather than starting a new line.  Doing it in 2 segments "What is the street address?" and "What are the city, state and zip?" is not practical for what I am doing.  Is it possible to do what I want, and if so how?

Thanks in Advance,
Bob Young

End of AppleScript-Users Digest, Vol 9, Issue 33
************************************************

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


  • Prev by Date: Formatting Text When Responding to a Dialog Box
  • Next by Date: Re: Formatting Text When Responding to a Dialog Box
  • Previous by thread: Re: Formatting Text When Responding to a Dialog Box
  • Next by thread: RE: Formatting Text When Responding to a Dialog Box
  • Index(es):
    • Date
    • Thread