• 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: Emmanuel <email@hidden>
  • Date: Wed, 12 Mar 2003 00:26:09 +0100

At 1:02 PM -0500 11/03/03, Richard Simms wrote:

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

In addition to the helpful replies that you got, it is absolutely necessary that you know that "=" is the operator which evaluates whether both sides of itself are equal or not, and returns the result as a boolean (true or false):

-------------------------
set listsAreEqual to (myList = theOtherList)
if listsAreEqual then ... blah
-------------------------

There are, I think, 3 ways of assigning a value to a variable:

-------------------------
set x to 2
copy 2 to x -- set & copy are different for lists, check the official documentation
2 returning x
-------------------------

Emmanuel
_______________________________________________
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: Re: Determining item number matching "x" in a list
  • Next by Date: Coping files for backup.
  • Previous by thread: Re: Getting Multiple Returns From A Dialog
  • Next by thread: Re: Getting Multiple Returns From A Dialog
  • Index(es):
    • Date
    • Thread