Just solved my own question:
Photoshop was being weird so I had to change the color 2 times for the event to be recognized...idk why but it worked: heres the code:
desc66.putReference( idnull, ref55 );
var idT = charIDToTypeID( "T " );
var desc67 = new ActionDescriptor();
var idClr = charIDToTypeID( "Clr " );
var idClr = charIDToTypeID( "Clr " );
var idVlt = charIDToTypeID( "Vlt " );
desc67.putEnumerated( idClr, idClr, idVlt );
var idLyr = charIDToTypeID( "Lyr " );
desc66.putObject( idT, idLyr, desc67 );
executeAction( idsetd, desc66, DialogModes.NO );