• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

.psjs script doesnot execute in PS 25.11

Explorer ,
Sep 06, 2024 Sep 06, 2024

Copy link to clipboard

Copied

scripts containing batch play commands not executing after saving as .psjs in PS version 25.11

alert added at the beginning of the execution also didnot execute.

 

I have tried placing  the file in preset/scripts folder as well.

Mac version - Ventura & Monterey

Please let me know how to resolve.

TOPICS
Actions and scripting , macOS

Views

103

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Explorer ,
Sep 08, 2024 Sep 08, 2024

Copy link to clipboard

Copied

Any help is appreciated, as we are not able to execute any scripts

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 09, 2024 Sep 09, 2024

Copy link to clipboard

Copied

Can you get this one-liner to work? There is no BatchPlay, only UXP:

 

require('photoshop').app.showAlert("Hello world!");

 

What exact BatchPlay code? Is this a save step? Did you use Photoshop or Alchemist for the code?

 

What simplification steps have you used for troubleshooting to isolate and identify the issue?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 10, 2024 Sep 10, 2024

Copy link to clipboard

Copied

LATEST

Thanks for responding.  The provided one line works. But the below sample code for batchplay doesnot .

 

batchplay is used to run multiple actions . Used photopshop to import the action to script file.

 

async function samplePixel() {
return await require("photoshop").action.batchPlay([{
_obj: "colorSampler",
_target: {_ref: "document",_enum: "ordinal",_value: "targetEnum"},
samplePoint: {
horizontal: 100,
vertical: 100
}
}], {});
}
let result = await require("photoshop").core.executeAsModal(samplePixel, {"commandName": "Sample Pixel"});

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines