• 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: Getting Multiple Returns From A Dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting Multiple Returns From A Dialog


  • Subject: Re: Getting Multiple Returns From A Dialog
  • From: Bill White <email@hidden>
  • Date: Tue, 11 Mar 2003 14:06:41 -0500

> display dialog "TEXT" default answer "42" buttons {"one","two","three"}
> set text1 to --text returned of the dialog
> set button1 to --button returned of the dialog

You're close. Try this:

set thisDialog to (display dialog "TEXT" default answer "42" buttons {"one",
"two", "three"})

set text1 to text returned of thisDialog
set button1 to button returned of thisDialog

-- text1 is then "42" (if no other text was entered)
-- button1 is then "one" (if "one" was clicked)

HTH,

Bill
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Getting Multiple Returns From A Dialog (From: Richard Simms <email@hidden>)

  • Prev by Date: Disconnecting from network volumes
  • Next by Date: Re: Getting Multiple Returns From A Dialog
  • Previous by thread: Getting Multiple Returns From A Dialog
  • Next by thread: Re: Getting Multiple Returns From A Dialog
  • Index(es):
    • Date
    • Thread