The idea is that you make sure all the tracks you want to process are in the main window, then click "File, Create Reports, Duplicate Report". You will be presented with an options screen...

Match mode - This is how your tracks will be grouped, the fields listed will all be checked to see if they match.
Keep field - This script needs to keep track of what flag it has given tracks on previous runs. You can use any available text field, hover over to see a few examples.
Tolerance - This is the number of seconds which tracks are allowed to differ in length but be considered the same length.
Majority - In some cases a previously considered keepable track can be overthrown by a majority of other tracks. You get to decide how large this majority needs to be!
Match titles... - Sometimes other duplicate software you've used in the past will have added (2) and (3) etc to the end of matching titles. This script can ignore those so the titles still match.
If group... - On secondary runs you might wish to remove tracks that could not be decided on last run.
Ignore flags - You might have run the script before and therefore have tags, but you might wish for the script to ignore these and run as though it was running for the first time.
Ignore case - This means the check is now longer case sensitive.
Use selection - This will use only the selected tracks instead of all the visible ones.
There are four types of flags:
KEEP - This is where you have manually specified to keep the track.
AUTO - This is where the script decides this is the best track to keep.
SOFT - This is where the script cannot make a decision.
DUPE - This is where the script has decided this is a duplicate which you can remove.
Once the first 4 stages of the script have run you will be presented with a confirmation screen. This lists your settings and all of the tracks and how they've been flagged. You can then click on the track title to play the track, or the flag to change it between KEEP, DUPE and whatever flag the script decided on.
If you are confident with the choices made and want to remove the duplicates then you can use the "Delete" option, which provides a confirmation screen asking if you want to remove from your computer as well as the library. However for the first few runs I'd recommend using the "Flag" option which just flags the duplicates, and you can manually delete them yourself later, once you're sure.
Please provide feedback on how useful this script has been for you!
