Re: Unique items in list
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