"default answer" and buttons on the same display dialog line
"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