I have recorded a step which fills a layer with black but my issues is that when you go to Photoshop - Edit Undo Fill is Grayed Out and I dont know why.
await batchPlay(
[
{
"_obj": "fill",
"using": {
"_enum": "fillContents",
"_value": "black"
},
"opacity": {
"_unit": "percentUnit",
"_value": 100
},
"mode": {
"_enum": "blendMode",
"_value": "normal"
},
"_isCommand": true,
"_options": {
"dialogOptions": "dontDisplay"
}
}
],{
"synchronousExecution": false,
"modalBehavior": "fail"
});