Could not complete your request because of a program error.",“result”:-1715
Any ideas?
Here was the script:
const core = require(‘photoshop’).core; const batchPlay = require(‘photoshop’).action.batchPlay; async function addBlackAndWhiteAdjustmentLayerWithModal() { let detailedResult; try { detailedResult = await core.executeAsModal(async () => { const result = await batchPlay( [ { _obj: ‘make’, new: { _class: ‘adjustmentLayer’ }, layerID: 1, using: { _obj: ‘blackAndWhite’, presetKind: { _enum: ‘presetKindType’, _value: ‘presetKindCustom’ } } } ], { synchronousExecution: false, modalBehavior: ‘wait’ } ); // Return detailed result for inspection return result; }); } catch (error) { detailedResult =
Error occurred: ${error.toString()}
; } return detailedResult; } return addBlackAndWhiteAdjustmentLayerWithModal();