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

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


  • Subject: "default answer" and buttons on the same display dialog line
  • From: Mason <email@hidden>
  • Date: Mon, 28 Dec 2009 22:06:25 -0800 (PST)

Anyone know how to use "default answer" and buttons on the same line and set a variable for both separately?

My script contains:

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

I only want one "display dialog" and I know I can set a variable to the text returned of the answer (as I did with changePrice above) or set a variable to capture the button pressed  with a "set changePrice to button returned of" but I do not know how to do both using just one "display dialog"

So, I want one "display dialog" where the user enters a number in the text box and that result gets set to a variable1 and then the user can choose Subtract or Add and my script sets that result to variable2.

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

Thanks for the help!

- Mason Rove
 _______________________________________________
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: "default answer" and buttons on the same display dialog line
      • From: Tim Mansour <email@hidden>
    • Re: "default answer" and buttons on the same display dialog line
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Creating a remote sparsebundle
  • Next by Date: Re: "default answer" and buttons on the same display dialog line
  • Previous by thread: Re: Creating a remote sparsebundle
  • Next by thread: Re: "default answer" and buttons on the same display dialog line
  • Index(es):
    • Date
    • Thread