How do I listen to high-contrast retention events? This is my code, but it doesn’t work.
var addLis = async function () {
const PS = window.require("photoshop");
const app = PS.app;
await PS.action.addNotificationListener([{
event: "highPass"
}], function (e, d) {
app.showAlert("GFCV")
// GFCV = d.radius._value;
console.log(GFCV + " :--GFCV");
});
await PS.action.batchPlay(
[{
"_obj": "highPass",
"radius": {
"_unit": "pixelsUnit",
"_value": 3.5
},
"_options": {
"dialogOptions": "display"
},
"_isCommand": true
}], {});
}
addLis();