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