I have recorded some steps with Alchemist but when I run it from the Plugin, I get a message box saying… “Could not complete your request because of a program error”
I have since run the code direct from Alchemist Play button and it seems to run ok.
I am using MAC with latest Photoshop
Any one got any suggestions please
const batchPlay = require("photoshop").action.batchPlay;
const result = await batchPlay(
[
{
"_obj": "set",
"_target": [
{
"_ref": "channel",
"_property": "selection"
}
],
"to": {
"_ref": "channel",
"_enum": "channel",
"_value": "RGB"
},
"_isCommand": true,
"_options": {
"dialogOptions": "dontDisplay"
}
},
{
"_obj": "duplicate",
"_target": [
{
"_ref": "channel",
"_property": "selection"
}
],
"_isCommand": true,
"_options": {
"dialogOptions": "dontDisplay"
}
},
{
"_obj": "select",
"_target": [
{
"_ref": "channel",
"_name": "Alpha 1"
}
],
"_isCommand": true,
"_options": {
"dialogOptions": "dontDisplay"
}
},
{
"_obj": "set",
"_target": [
{
"_ref": "channel",
"_enum": "ordinal",
"_value": "targetEnum"
}
],
"to": {
"_obj": "channel",
"name": "Lighter Areas"
},
"_isCommand": true,
"_options": {
"dialogOptions": "dontDisplay"
}
}
],{
"synchronousExecution": false,
"modalBehavior": "fail"
});