Applescript to delete duplicate tasks

On the old forums, @jamesafoster posted a link to a script that he wrote to remove duplicate tasks (

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.