I get actionDescriptor in Alchemist which is
const batchPlay = require("photoshop").action.batchPlay;
const result = await batchPlay(
[
{
_obj: "historyStateChanged",
documentID: 342,
ID: 352,
name: "demo-2.psd",
hasEnglish: false,
itemIndex: 0,
_options: {
dialogOptions: "dontDisplay"
}
}
],{
synchronousExecution: false,
modalBehavior: "fail"
});
when I use it in photoshop 2022, it does not work. What is wrong?