Object: printOneCopy does not work from the UXP plugin

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":"AgAAACBuaVcAAAAARQBQAFMATwBOACAATAAxADMAMAAwACAAUwBlAHIAaQBlAHMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEEAALcAHgOD5uABwEACQCaCzQIZAABAAUBtAACAAEAtAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHgOAAABAQEBAAIAAAEAAAAAAAAAAAAAADgAAACADQAAuA0AAEAAAAD4DQAAgAAAAAAAAAAAAAAAAwAWCEUAUABTAE8ATgAgAEwAMQAzADAAMAAgAFMAZQByAGkAZQBzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAQAAAABABAOAAAAAAAAAAAAAAEAAAACAAEAAAAeALQAtAAFAQAAAAAJADQImgseAB4AHgAeADQImgs7A5EEAgAEAAMAFgAAAAAAAAAAAAAAAAAAAAAAAAACAAAABgAAAAAAAAAAAAIAAAAAAgAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACIiIiIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgBAAAAAGAAAQAAACAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAEAAAAAAAAAAAAAAAAAAAABAB4AHgAAAAAAAAAAAP//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
}

Unfortunately here on the forum there is no discussion on this topic, please, could someone with a printer record an action, with some printing, then convert it into a script.js and execute it through a UXP plugin? Please tell me if it worked or if this feature would be unfeasible, if there is any way to make this work. Thanks.

The “Print” command is currently unavailable. At least that’s the error message in the console when converting the .atn file through Alchemist.

I briefly tried it but was also unable to print via batchplay.

@PS-fxrios, @JasonM, thanks for testing.
Hard to believe this isn’t already available in UXP 7.2.0
Hello @amandah, @Erin_Finnegan, @Samgannaway, could anyone confirm that Object: printOneCopy does not work in the UXP plugin and what are the predictions for release?

I was writing DOM for printing functionality. This is in the review stage.

What if you record the other print functionality with more options?

1 Like

Hi @Jarda thanks for responding. Other printing features with more options that you mentioned are testing all print qualities? If so, I already did it and it didn’t work.

I also tried executing the actions via batchplay and it didn’t work:

await app.batchPlay([{"_obj":"play","_target":[{"_name": "printCopy","_ref":"action"},{"_name": "myactionSet","_ref":"actionSet" }]}], { });

msg: the command “Print” is not currenty avaliable.

Hi @Jarda, this is a topic that interests me too, I’m rebuilding my CEP panel for the UXP plugin and unfortunately this feature has not yet been added to UXP, not even through jsx in UXP it works. What are the release forecasts for this feature? Thanks.

I have no insight into the forecast. But I would not expect it anytime soon… probably not even in 2024.

2 Likes