Re: Trimming down a list
Re: Trimming down a list
- Subject: Re: Trimming down a list
- From: Doug Adams <email@hidden>
- Date: Wed, 10 Apr 2002 17:17:09 -0400
4/10/02 9:36 AM: Suddenly, Steve Thompson, cleverly disguised as
<email@hidden>, burst into the room and said:
>
I have this script
>
>
set mrt to {long list of 10,000+ items created from a text file)
>
set k to {}
>
repeat with i from 1 to (the number of items in mrt)
>
if item i of mrt is not in k then set k to k & (item i of mrt)
>
end repeat
>
>
...the idea being that k contains a list of unique items based on whats in
>
mrt
If your OSAX works, try setting mrt to a reference to the list to speed it
up:
set mrt to (get a ref to {long list of kabillion items})
It should zoom.
--
Doug Adams
email@hidden
iTuners and SoundJammers!
Get some AppleScripts!
http://www.malcolmadams.com/itunes/
Tex-Edit Plus users!
Visit the Official AppleScripts for Tex-Edit Plus Archives
http://www.malcolmadams.com/te/
_______________________________________________
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.