• 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: "default answer" and buttons on the same display dialog line
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "default answer" and buttons on the same display dialog line


  • Subject: Re: "default answer" and buttons on the same display dialog line
  • From: Michelle Steiner <email@hidden>
  • Date: Mon, 28 Dec 2009 23:15:57 -0700

On Dec 28, 2009, at 11:06 PM, Mason wrote:

Can this be done all with a single "display dialog"?

Easily.

set {changePrice, direction} to {text returned, button returned} of (display dialog "What is the amount?" default answer "1.25" buttons {"Cancel", "Subtract", "Add"} default button 2)

-->  {"1.25", "Add"}

Or if the "Subtract" button is pressed:

--> {"1.25", "Subtract"}

-- Michelle

-- 
Only in in the USA do they have a General in charge of the post office and a Secretary in charge of defense.


 _______________________________________________
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

References: 
 >"default answer" and buttons on the same display dialog line (From: Mason <email@hidden>)

  • Prev by Date: "default answer" and buttons on the same display dialog line
  • Next by Date: Re: "default answer" and buttons on the same display dialog line
  • Previous by thread: "default answer" and buttons on the same display dialog line
  • Next by thread: Re: "default answer" and buttons on the same display dialog line
  • Index(es):
    • Date
    • Thread