try this script,
// matchStrokeToFillColor.jsx // carlos canto 07/01/2014 // https://forums.adobe.com/thread/1511792 function main(){ var idoc = app.activeDocument; var sel = selection; for (a=0; a<sel.length; a++) { var ipath = sel[a]; if (ipath.typename=='PathItem') { ipath.stroked = true; ipath.strokeColor = ipath.fillColor; } } } main ();