• 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: Unique items in list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unique items in list


  • Subject: Re: Unique items in list
  • From: Michelle Steiner <email@hidden>
  • Date: Thu, 21 Oct 2004 11:11:53 -0700


On Oct 21, 2004, at 10:22 AM, Eric Geoffroy wrote:

Method B: Doesn't work at all.

set finals to {1, 5, 5, 5, 6, 66, 999}
set juz to {}

repeat with x in finals
	if x is not in juz then set end of juz to x
end repeat
contents of juz

set finals to {1, 5, 5, 5, 6, 66, 999} set juz to {}

repeat with x in finals
	if x is not in juz then set end of juz to contents of x
end repeat
contents of juz

If you had put just "juz" in your last line, you would have seen why it failed:

{item 1 of {1, 5, 5, 5, 6, 66, 999}, item 2 of {1, 5, 5, 5, 6, 66, 999}, item 3 of {1, 5, 5, 5, 6, 66, 999}, item 4 of {1, 5, 5, 5, 6, 66, 999}, item 5 of {1, 5, 5, 5, 6, 66, 999}, item 6 of {1, 5, 5, 5, 6, 66, 999}, item 7 of {1, 5, 5, 5, 6, 66, 999}}

--
We're surrounded. That simplifies the problem.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Unique items in list (From: Eric Geoffroy <email@hidden>)

  • Prev by Date: Re: file extension
  • Next by Date: Re: Code completion suggestion
  • Previous by thread: Unique items in list
  • Next by thread: Re: Unique items in list
  • Index(es):
    • Date
    • Thread