• 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: Need a faster Find Duplicates Routine
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need a faster Find Duplicates Routine


  • Subject: Re: Need a faster Find Duplicates Routine
  • From: "Johnny AppleScript" <email@hidden>
  • Date: Wed, 28 May 2003 01:48:20 -0600

On 03/05/27 11:46 PM, "Ken Tozier" <email@hidden> wrote:

>
> Not sure I fully understand what you're trying to do with this loop,
> but if you're objective is to create one list containing a single
> instance of every object in the source list and another list with a
> single instance of each item that apperars in source list more than
> once,[...]

That's certainly closer than what I had before; what I'm after is finding a
list of every instance of a duplicate file from a list, and a reference to
that file from a source list; in this case, in iTunes, where the 'Get Every'
feature is *still* broken after two major upgrades.

I.E.,
IF:
set sourceList to {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "j",
"j", "k", "l", "m", "n", "o", "o", "o", "p", "q", "q", "r", "r", "s", "s"}

[script actions]

THEN:
dupList:{"j", j", "j", "o", "o", "o", "q", "q", "r", "r", "s", "s"}

What I've done in lieu of a good routine so far is break up the entire list
into alpha-numeric sub-lists; since the current search criteria is strictly
identical 'Song Name' in tracks, it is much faster to compare each instance
with 200-300 possible duplicates that begin with the same character, rather
than needlessly checking several thousand files that do not.

Thanks to all for the suggestions so far; they've given me some ideas as to
how to improve on what I have.

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.

  • Follow-Ups:
    • Re: Need a faster Find Duplicates Routine
      • From: Christopher Nebel <email@hidden>
    • Re: Need a faster Find Duplicates Routine
      • From: Deivy Petrescu <email@hidden>
References: 
 >Re: Need a faster Find Duplicates Routine (From: Ken Tozier <email@hidden>)

  • Prev by Date: Re: Need a faster Find Duplicates Routine
  • Next by Date: Re: Scripting Lotus Notes
  • Previous by thread: Re: Need a faster Find Duplicates Routine
  • Next by thread: Re: Need a faster Find Duplicates Routine
  • Index(es):
    • Date
    • Thread