• 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: Luther Fuller <email@hidden>
  • Date: Wed, 25 Jan 2012 15:58:52 -0600

On Jan 25, 2012, at 2:08 PM, KOENIG Yvan wrote:
Hello Luther.
Which is the anormal behavior which you report ?

The button on the right in your first dialog isn't button 1, it's button 2.
The buttons are numbered starting from the one on the left.
In your sample code, button 1 is the Cancel one.

I told you that I haven't the slightest idea how to solve this.
But, as this illustrates ...

display dialog "Enter ..." default answer "street_address" & return & "city, state zip"

you can do without the 'default button 1'. (No bug here!)
I thought that was the cause of the behavior I was getting. Another quick experiment showed me that it's the 'return' in the default answer that uncouples the return key from the "OK" button. In fact, you can use ...

display dialog "Enter ..." default answer return 

to uncouple the return key from the "OK" button. But it's not as informative. :)

 _______________________________________________
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

  • Follow-Ups:
    • Re: Formatting Text When Responding to a Dialog Box
      • From: Michelle Steiner <email@hidden>
References: 
 >Formatting Text When Responding to a Dialog Box (From: "Robert W. Young" <email@hidden>)
 >Re: Formatting Text When Responding to a Dialog Box (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Slow Applescript Mailing list
  • 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