var c=app.activeDocument.colors; var t=app.activeDocument.tints; var myTint=t.add(c[3],{ tintValue:40 });