Is there a batchPlay command for core.redrawDocument?

I’m looking a way to get the next code line:

await core.redrawDocument({ documentID: app.activeDocument.id });

as a batchPlay command JSON object, does anyone knows if there’s a way to make this work with batchPlay?

Thanks!

Is that so you can trigger it in the middle of an array of batch plays? Could you run it as two batches with {synchronousUpdate: true, immediateRedraw: true} as the second parameter of the first batch?

The idea is to have it as the last element of the batch array so when batchPlay is run it runs in just that call, avoiding the second call from await core.redrawDocument. But I don’t know if there’s any obj in the batchPlay world that could do this.

maybe this?
{
_obj: “waitForRedraw”
}

I just tested and not really, or that doesn’t work or is faster to call core.redrawDocument(). I appreciate the help!