Merge down swatch duplicates

Script for InDesign; written by legendary Dave Saunders. Works in CC 2018. Should work in earlier versions as well. The source is here.

Click here to download the script.