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

Getting Multiple Returns From A Dialog


  • Subject: Getting Multiple Returns From A Dialog
  • From: Richard Simms <email@hidden>
  • Date: Tue, 11 Mar 2003 13:02:04 -0500

Hello all,

How would one go about getting multiple results from a dialog with three buttons and a text entry box? I want to store the button returned in a variable and the text returned in a variable.

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

This still won't work if i make the dialog equal something and try and get the results from the variable.

m=(display dialog)
set text1 to text returned of m
set button1 to button returned of m

Is there a way that this will work or should i just go with multiple dialog boxes?

Thanks for your time,
Richard Simms
--
_______________________________________________
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.

  • Follow-Ups:
    • Re: Getting Multiple Returns From A Dialog
      • From: Emmanuel <email@hidden>
    • Re: Getting Multiple Returns From A Dialog
      • From: Michelle Steiner <email@hidden>
    • Re: Getting Multiple Returns From A Dialog
      • From: Bill Briggs <email@hidden>
    • Re: Getting Multiple Returns From A Dialog
      • From: Bill White <email@hidden>
  • Prev by Date: Re: Big numbers (again) and complex routine
  • Next by Date: Re: System Events problem
  • Previous by thread: Need help scripting System Prefs (Sound, Displays)
  • Next by thread: Re: Getting Multiple Returns From A Dialog
  • Index(es):
    • Date
    • Thread