I've loaded a .tpl preset file into Photoshop CC 2017, the .tpl file is pretty big and after loading it into the Preset manager, most of the brushes were duplicated for some reason. But it works fine in Photoshop CS 6, so I'm pretty sure the file itself is OK. Now I'm trying to delete all the duplicated brushes through Preset Manager, but there're just too many of them I could not do it manually.
I'm thinking about writing a .jsx script to do that for me. It will go through the Preset Manager with a for loop and remove every duplicated ones. But I'm not familiar with Photoshop scripting. Pls send help!