const command: ActionDescriptor = {
_obj: 'exportSelectionAsFileTypePressed',
_target: {
_ref: 'layer',
_enum: 'ordinal',
_value: 'targetEnum',
},
fileType: format,
quality: 32,
metadata: 0,
destFolder: destFolder.nativePath,
sRGB: true,
openWindow: false,
_options: { dialogOptions: 'dontDisplay' },
};
await action.batchPlay([command], {
synchronousExecution: true,
modalBehavior: 'fail',
});
which property can set image name ? @Jarda