Hello good afternoon! I recorded an action to print in low quality on an Epson L1300 printer, when converting to js, I can’t make it work with batchPlay in a UXP plugin. I don’t get any error messages on the console. If I drag the .json file into Photoshop, it works perfectly, but not from the UXP plugin, can we consider this a bug?
async function configsPrints(){
await core.executeAsModal( async() => {
try {
await app.batchPlay([
{"_obj":"print","_target":[{"_property":"printOutput","_ref":"property"},{"_enum":"ordinal","_ref":"document"}],"caption":"","osSpecificPrintInfo":{"_obj":"osSpecificPrintInfo","systemInfo":{"_data":"AgAAACBuaVcAAAAARQBQAFMATwBOACAATAAxADMAMAAwACAAUwBlAHIAaQBlAHMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEEAALcAHgOD5uABwEACQCaCzQIZAABAAUBtAACAAEAtAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHgOAAABAQEBAAIAAAEAAAAAAAAAAAAAADgAAACADQAAuA0AAEAAAAD4DQAAgAAAAAAAAAAAAAAAAwAWCEUAUABTAE8ATgAgAEwAMQAzADAAMAAgAFMAZQByAGkAZQBzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAQAAAABABAOAAAAAAAAAAAAAAEAAAACAAEAAAAeALQAtAAFAQAAAAAJADQImgseAB4AHgAeADQImgs7A5EEAgAEAAMAFgAAAAAAAAAAAAAAAAAAAAAAAAACAAAABgAAAAAAAAAAAAIAAAAAAgAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACIiIiIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgBAAAAAGAAAQAAACAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAEAAAAAAAAAAAAAAAAAAAABAB4AHgAAAAAAAAAAAP//AAAAAAAAAAAAAIEAAAAAAAAAAAAAAAAAAAABAQEBAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","_rawData":"base64"}},"printOutput":{"_obj":"printOutput","colorSpace":{"_enum":"colorSpace","_value":"RGBColor"},"intent":{"_enum":"intent","_value":"colorimetric"},"mapBlack":true,"name":"EPSON L1300 Series_L1300_Subjet_F-Blue90.icm","printProofSetup":{"_obj":"proofSetup","builtin":{"_enum":"builtinProof","_value":"proofCMYK"}},"printSixteenBit":false,"printerName":"EPSON L1300 Series"},"printOutputOptions":{"_obj":"printOutputOptions","background":{"_obj":"RGBColor","blue":255.0,"grain":255.0,"red":255.0},"bleed":{"_unit":"distanceUnit","_value":0.0},"borderThickness":{"_unit":"distanceUnit","_value":0.0},"calibrationBars":false,"caption":false,"centerCropMarks":false,"cornerCropMarks":false,"cropRectBottom":825,"cropRectLeft":0,"cropRectRight":579,"cropRectTop":0,"cropWhenPrinting":false,"emulsionDown":false,"interfaceIconFrameDimmed":false,"labels":false,"left":{"_unit":"distanceUnit","_value":74.0},"negative":false,"pagePosition":{"_enum":"pagePosition","_value":"pagePosCentered"},"registrationMarks":false,"resolution":{"_unit":"pixelsUnit","_value":250.0},"scale":{"_unit":"percentUnit","_value":100.0},"top":{"_unit":"distanceUnit","_value":115.0},"vectorData":true},"printViewProofSetup":{"_obj":"proofSetup","builtin":{"_enum":"builtinProof","_value":"proofCMYK"}}},
{"_obj":"printOneCopy"}
]);
} catch (err) {console.log(err)}
});
}
Manifest:
"app": "PS",
"minVersion": "24.2.0",
"date": {
"apiVersion": 2
}