Applescript to delete duplicate tasks

On the old forums, @jamesafoster posted a link to a script that he wrote to remove duplicate tasks (http://forums.omnigroup.com/showthread.php?t=14591)

Does anyone have a copy of that script I could take a look at? It would save me some time to not have to recreate it from scratch.