Need a faster Find Duplicates Routine
Need a faster Find Duplicates Routine
- Subject: Need a faster Find Duplicates Routine
- From: "Johnny AppleScript" <email@hidden>
- Date: Tue, 27 May 2003 12:58:53 -0600
Hey All,
Anyone know of any samples that will run faster than this? This one is fine
for under 300 items, but give it 3000 (3k X 3k = painfully inefficient), and
be prepared to wait... and wait... and wait...
set theItems to [a list of items]
set dupesList to {}
set checkList to {}
repeat with i from 1 to number of items in theItems
set x to the name of item i of theItems
if x is in checkList then
repeat with i from 1 to number of items in theItems
set y to item i of theItems
if the name of y is x then
set the end of dupesList to y
end if
end repeat
else
copy x to the end of checkList
end if
end repeat
TIA
JA
_______________________________________________
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.