0
的名字,我知道它可以刪除使用從腳本的指數在Photoshop中色樣,它看起來像這樣:刪除色板使用色板
function DeleteSwatch(index)
{
var idDlt = charIDToTypeID("Dlt ");
var desc11 = new ActionDescriptor();
var idnull = charIDToTypeID("null");
var ref5 = new ActionReference();
var idClrs = charIDToTypeID("Clrs");
ref5.putIndex(idClrs, index);
desc11.putReference(idnull, ref5);
executeAction(idDlt, desc11, DialogModes.NO);
}
不過,我不知道是否有人知道方法來使用顏色樣本的名稱而不是索引?