var t=app.activeDocument.tints; var baseSW=app.activeDocument.swatches[5]; try{ var newSW=t[0].merge(baseSW); alert(newSW.name); }catch(e){}