Re: What is Best Method To Determine Duplicate Items in a Large List?
Re: What is Best Method To Determine Duplicate Items in a Large List?
- Subject: Re: What is Best Method To Determine Duplicate Items in a Large List?
- From: Shane Stanley <email@hidden>
- Date: Mon, 14 Aug 2017 17:10:47 +1000
On 14 Aug 2017, at 1:36 pm, Jim Underwood <email@hidden> wrote:
>
> Is it possible to retain the order of the source list (theBigList) in the
> resulting dup list (indexInfo)?
>
> My source list is Note Titles that I have sorted in alphanumeric order, but
> the script seems to ignore this.
The quickest would be to sort the duplicates, changing this:
set theDupes to theCountedSet's allObjects()
to:
set duplicatedValues to countedDupes's allObjects()'s
sortedArrayUsingSelector:"compare:"
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden