# \#batch-play

**URL:** https://forums.creativeclouddeveloper.com/tag/batch-play/130.md

[Latest](https://forums.creativeclouddeveloper.com/latest.md) · [Categories](https://forums.creativeclouddeveloper.com/categories.md) · [Tags](https://forums.creativeclouddeveloper.com/tags.md)

---

## [Results of perf test on batchplay "get"](https://forums.creativeclouddeveloper.com/t/results-of-perf-test-on-batchplay-get/11635)

<div class="topic-metadata">

**Author:** [@maxplaystudios](https://forums.creativeclouddeveloper.com/u/maxplaystudios)\
**Replies:** 4\
**Last updated:** [January 15, 2026, 10:30pm UTC](https://forums.creativeclouddeveloper.com/t/results-of-perf-test-on-batchplay-get/11635 "2026-01-15T22:30:06Z")

</div>

I know batchPlay is faster than the javascript API, but I was curious about the different flavors of the “get” command so here’s a quick perf test and not scientifically rigorous results… I set up 4 tests, 1000 iteratio…

---

## [Photoshop UXP Plugin — Images Place on Frames but Not Fitting Correctly (Clipping Mask + Transform Issue)](https://forums.creativeclouddeveloper.com/t/photoshop-uxp-plugin-images-place-on-frames-but-not-fitting-correctly-clipping-mask-transform-issue/11530)

<div class="topic-metadata">

**Author:** [@Sonuvijay](https://forums.creativeclouddeveloper.com/u/Sonuvijay)\
**Replies:** 0\
**Last updated:** [November 10, 2025, 8:36am UTC](https://forums.creativeclouddeveloper.com/t/photoshop-uxp-plugin-images-place-on-frames-but-not-fitting-correctly-clipping-mask-transform-issue/11530 "2025-11-10T08:36:28Z")

</div>

Hi everyone, I’m building a Photoshop UXP plugin using React that automatically places selected photos into selected PSD frame layers. Here’s what’s happening right now: - When I select 1 or more frame layers and then…

---

## [A nodal system for Photoshop!](https://forums.creativeclouddeveloper.com/t/a-nodal-system-for-photoshop/11398)

<div class="topic-metadata">

**Author:** [@Dimdapp](https://forums.creativeclouddeveloper.com/u/Dimdapp)\
**Replies:** 14\
**Last updated:** [September 13, 2025, 8:25am UTC](https://forums.creativeclouddeveloper.com/t/a-nodal-system-for-photoshop/11398 "2025-09-13T08:25:19Z")

</div>

Hello, I have developed a Photoshop plugin that allows you to do batch processing via a nodal system! The possibilities are endless. Would anyone be interested or have any suggestions for workflows?

---

## [How to modify a layer's gradient using a preloaded preset?](https://forums.creativeclouddeveloper.com/t/how-to-modify-a-layers-gradient-using-a-preloaded-preset/10578)

<div class="topic-metadata">

**Author:** [@dobs123](https://forums.creativeclouddeveloper.com/u/dobs123)\
**Replies:** 1\
**Last updated:** [April 16, 2025, 3:19pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-modify-a-layers-gradient-using-a-preloaded-preset/10578 "2025-04-16T15:19:26Z")

</div>

I would like to apply a gradientMap on a selected layer in Photoshop 2025. Is there any way for being able to specifically work with loaded Presets and call them only by name? As shown below, I’m able to select a chosen…

---

## [Is there a way to create a UXP plugin to run psjs scripts that run actions?](https://forums.creativeclouddeveloper.com/t/is-there-a-way-to-create-a-uxp-plugin-to-run-psjs-scripts-that-run-actions/10262)

<div class="topic-metadata">

**Author:** [@OliverM](https://forums.creativeclouddeveloper.com/u/OliverM)\
**Replies:** 18\
**Last updated:** [April 2, 2025, 4:05pm UTC](https://forums.creativeclouddeveloper.com/t/is-there-a-way-to-create-a-uxp-plugin-to-run-psjs-scripts-that-run-actions/10262 "2025-04-02T16:05:20Z")

</div>

Hello everyone, This is my first post and I hope that I am doing a good job at it. I want to automate my action scripts, and I am looking for a way to let them run on a whole folder. Currently I would think the best wa…

---

## [How to export a video programmatically with batchplay](https://forums.creativeclouddeveloper.com/t/how-to-export-a-video-programmatically-with-batchplay/9701)

<div class="topic-metadata">

**Author:** [@Danilo01Cost](https://forums.creativeclouddeveloper.com/u/Danilo01Cost)\
**Replies:** 0\
**Last updated:** [February 25, 2025, 4:39pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-export-a-video-programmatically-with-batchplay/9701 "2025-02-25T16:39:39Z")

</div>

Hi all im working on a bulk video exporter and wanted to see if there is a way to export videos without the dialog popping up. This is what I have to export the video so far but it always opens the dialog box and I have…

---

## [Problem with placedLayerReplaceContents. It does nothing, not even an error](https://forums.creativeclouddeveloper.com/t/problem-with-placedlayerreplacecontents-it-does-nothing-not-even-an-error/8146)

<div class="topic-metadata">

**Author:** [@Azami](https://forums.creativeclouddeveloper.com/u/Azami)\
**Replies:** 2\
**Last updated:** [July 17, 2024, 5:51pm UTC](https://forums.creativeclouddeveloper.com/t/problem-with-placedlayerreplacecontents-it-does-nothing-not-even-an-error/8146 "2024-07-17T17:51:34Z")

</div>

Hey, I’m building my first PS Plugin and got a problem with placedLayerReplaceContents. I have this function: async function selectArtwork() { console.log("Starting selectArtwork function"); try { // Dateiaus…

---

## [List of batchPlay commands?](https://forums.creativeclouddeveloper.com/t/list-of-batchplay-commands/7983)

<div class="topic-metadata">

**Author:** [@Frequency](https://forums.creativeclouddeveloper.com/u/Frequency)\
**Replies:** 7\
**Last updated:** [June 7, 2024, 5:03am UTC](https://forums.creativeclouddeveloper.com/t/list-of-batchplay-commands/7983 "2024-06-07T05:03:40Z")

</div>

Hi, I’m new to this batchPlay command. Almost every command I got was from this forum and Alchemist But where exactly those commands from? Like: const exportCommand = { \_obj: "exportSelectionAsFileTypePressed", \_t…

---

## [Different results when executing the same batchPlay command](https://forums.creativeclouddeveloper.com/t/different-results-when-executing-the-same-batchplay-command/7922)

<div class="topic-metadata">

**Author:** [@AAA](https://forums.creativeclouddeveloper.com/u/AAA)\
**Replies:** 0\
**Last updated:** [May 22, 2024, 9:08am UTC](https://forums.creativeclouddeveloper.com/t/different-results-when-executing-the-same-batchplay-command/7922 "2024-05-22T09:08:43Z")

</div>

Hi! I’m doing some tests with a plugin using batchPlay and one user report a different result than the others. In general, the returned placeEvent object has a replaceLayer property; but in the case of user B, it is mis…

---

## [How to set GeneratorSettings metadata?](https://forums.creativeclouddeveloper.com/t/how-to-set-generatorsettings-metadata/7689)

<div class="topic-metadata">

**Author:** [@dspice](https://forums.creativeclouddeveloper.com/u/dspice)\
**Replies:** 9\
**Last updated:** [March 26, 2024, 3:29pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-set-generatorsettings-metadata/7689 "2024-03-26T15:29:40Z")

</div>

Hi all, I need to store some metadata for my plugin in a document and while I started off with using XMP for this, this is giving me all kinds of technical headaches so I would like to try an alternative approach. I und…

---

## [Batchplay language issue](https://forums.creativeclouddeveloper.com/t/batchplay-language-issue/7419)

<div class="topic-metadata">

**Author:** [@Henrik2k17](https://forums.creativeclouddeveloper.com/u/Henrik2k17)\
**Replies:** 3\
**Last updated:** [January 26, 2024, 1:01pm UTC](https://forums.creativeclouddeveloper.com/t/batchplay-language-issue/7419 "2024-01-26T13:01:36Z")

</div>

Hi everyone, I’m currently working on a UXP plugin until I stumbled across this issue. All I need is a simple batch play that creates a new document based on the current clipboard contents. I developed the plugin with …

---

## [How to get all brush or tool presets?](https://forums.creativeclouddeveloper.com/t/how-to-get-all-brush-or-tool-presets/7168)

<div class="topic-metadata">

**Author:** [@Karmalakas](https://forums.creativeclouddeveloper.com/u/Karmalakas)\
**Replies:** 12\
**Last updated:** [December 2, 2023, 5:30pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-get-all-brush-or-tool-presets/7168 "2023-12-02T17:30:15Z")

</div>

Is there a way to get tool/brush preset list? Thought maybe it’s not in Alchemist app properties list and tried toolPreset & toolPresets, but it seems there are no such properties indeed. I’d like to get the list of thes…

---

## [Opening all images in a PDF via Batch-play](https://forums.creativeclouddeveloper.com/t/opening-all-images-in-a-pdf-via-batch-play/7044)

<div class="topic-metadata">

**Author:** [@LorenzoF](https://forums.creativeclouddeveloper.com/u/LorenzoF)\
**Replies:** 0\
**Last updated:** [October 31, 2023, 12:32pm UTC](https://forums.creativeclouddeveloper.com/t/opening-all-images-in-a-pdf-via-batch-play/7044 "2023-10-31T12:32:55Z")

</div>

Hi everyone, First time for me posting here, I just started delving into the Photoshop UXP documentation. I decided to get my feet wet by creating a simple plugin that: 1- takes a PDF and opens all images (not pages) …

---

## [How can I pass a custom parameter to BatchPlay?](https://forums.creativeclouddeveloper.com/t/how-can-i-pass-a-custom-parameter-to-batchplay/6249)

<div class="topic-metadata">

**Author:** [@fmotion1](https://forums.creativeclouddeveloper.com/u/fmotion1)\
**Replies:** 8\
**Last updated:** [September 10, 2023, 3:02pm UTC](https://forums.creativeclouddeveloper.com/t/how-can-i-pass-a-custom-parameter-to-batchplay/6249 "2023-09-10T15:02:28Z")

</div>

I have a simple UXP plugin that uses BatchPlay to toggle transformsSnapToPixels, (Vector Pixel Snapping). const {executeAsModal} = require("photoshop").core; const {batchPlay} = require("photoshop").action; const app = …

---

## [BatchPlay Action references not working properly](https://forums.creativeclouddeveloper.com/t/batchplay-action-references-not-working-properly/6784)

<div class="topic-metadata">

**Author:** [@hoangnb](https://forums.creativeclouddeveloper.com/u/hoangnb)\
**Replies:** 7\
**Last updated:** [September 8, 2023, 5:10pm UTC](https://forums.creativeclouddeveloper.com/t/batchplay-action-references-not-working-properly/6784 "2023-09-08T17:10:04Z")

</div>

Hi all :wave: I have been using batch play to save a specific file via \_target field. But it seems operating on the active document. Here is my batchplay: Here is the result: Here is my code: const result =…

---

## [Is there a Batchplay equivalent of the ActionDescriptor fromStream method?](https://forums.creativeclouddeveloper.com/t/is-there-a-batchplay-equivalent-of-the-actiondescriptor-fromstream-method/6175)

<div class="topic-metadata">

**Author:** [@PatrickDeen](https://forums.creativeclouddeveloper.com/u/PatrickDeen)\
**Replies:** 2\
**Last updated:** [April 15, 2023, 10:34am UTC](https://forums.creativeclouddeveloper.com/t/is-there-a-batchplay-equivalent-of-the-actiondescriptor-fromstream-method/6175 "2023-04-15T10:34:58Z")

</div>

I have a code snippet written by r-bin that uses the Action Descriptor fromStream method to extract/convert a chunk of binary data from a local psd-file, to usable information. With a little adjustment I created my own …

---

## [Batchplay content credentials](https://forums.creativeclouddeveloper.com/t/batchplay-content-credentials/6116)

<div class="topic-metadata">

**Author:** [@rbrowning](https://forums.creativeclouddeveloper.com/u/rbrowning)\
**Replies:** 0\
**Last updated:** [March 30, 2023, 2:13pm UTC](https://forums.creativeclouddeveloper.com/t/batchplay-content-credentials/6116 "2023-03-30T14:13:39Z")

</div>

Any ideas with using batchplay to save a file with embedded content credentials? The native ‘Export as’ screen allow us to do this.

---

## [Select duplicate rename export layer as PNG not exporting images](https://forums.creativeclouddeveloper.com/t/select-duplicate-rename-export-layer-as-png-not-exporting-images/5902)

<div class="topic-metadata">

**Author:** [@Charbel](https://forums.creativeclouddeveloper.com/u/Charbel)\
**Replies:** 0\
**Last updated:** [February 22, 2023, 9:04am UTC](https://forums.creativeclouddeveloper.com/t/select-duplicate-rename-export-layer-as-png-not-exporting-images/5902 "2023-02-22T09:04:11Z")

</div>

the code was functional only one time, before I need to restart my machine, now it is bugged it is doing the whole job correctly but not exporting anything, though for some reason I had to wait before runing the const e…

---

## [How to tell if layer has an existing frame (frame tool)](https://forums.creativeclouddeveloper.com/t/how-to-tell-if-layer-has-an-existing-frame-frame-tool/5586)

<div class="topic-metadata">

**Author:** [@contactzero](https://forums.creativeclouddeveloper.com/u/contactzero)\
**Replies:** 2\
**Last updated:** [December 14, 2022, 11:54am UTC](https://forums.creativeclouddeveloper.com/t/how-to-tell-if-layer-has-an-existing-frame-frame-tool/5586 "2022-12-14T11:54:58Z")

</div>

I add a frame to a layer via BATCHPLAY if the layer initially does not have one – this I have. Now, I want to test if the layer ALREADY has a frame… I am at a loss. Can someone point me in then right direction? TIA

---

## [Photoshop quick export occasionally doesn't work](https://forums.creativeclouddeveloper.com/t/photoshop-quick-export-occasionally-doesnt-work/4329)

<div class="topic-metadata">

**Author:** [@OliverOBrien](https://forums.creativeclouddeveloper.com/u/OliverOBrien)\
**Replies:** 5\
**Last updated:** [October 1, 2022, 8:37pm UTC](https://forums.creativeclouddeveloper.com/t/photoshop-quick-export-occasionally-doesnt-work/4329 "2022-10-01T20:37:16Z")

</div>

Hi all :wave: I have been developing a plug in for quite some time. For a few weeks I have used the export as png batch-play command to then load in a preview. A dirty solution, tbh. Recently it has been failing to exp…

---

## [Loop through batch pla](https://forums.creativeclouddeveloper.com/t/loop-through-batch-pla/5249)

<div class="topic-metadata">

**Author:** [@leigh765](https://forums.creativeclouddeveloper.com/u/leigh765)\
**Replies:** 1\
**Last updated:** [September 19, 2022, 9:55pm UTC](https://forums.creativeclouddeveloper.com/t/loop-through-batch-pla/5249 "2022-09-19T21:55:07Z")

</div>

I am creating a plugin where I loop through document and: open resize make canvas larger batch play a template on image When I loop through the docs I get VM13909 common.js:103 Too many modal scope commands I have t…

---

## [Move Layer to Front through batch-play works differently in PS 23.4.1](https://forums.creativeclouddeveloper.com/t/move-layer-to-front-through-batch-play-works-differently-in-ps-23-4-1/4814)

<div class="topic-metadata">

**Author:** [@Adam](https://forums.creativeclouddeveloper.com/u/Adam)\
**Replies:** 46\
**Last updated:** [July 10, 2022, 11:05am UTC](https://forums.creativeclouddeveloper.com/t/move-layer-to-front-through-batch-play-works-differently-in-ps-23-4-1/4814 "2022-07-10T11:05:24Z")

</div>

Hi, I was using move “layer to front” in batch-play in many functions, when I wanted to make sure that the layer or the group created by the script will be on top. I had no issue till the latest Photoshop update 23.4.1.…

---

## [Error in console after successful ExeModal/BatchPlay](https://forums.creativeclouddeveloper.com/t/error-in-console-after-successful-exemodal-batchplay/4734)

<div class="topic-metadata">

**Author:** [@Karmalakas](https://forums.creativeclouddeveloper.com/u/Karmalakas)\
**Replies:** 5\
**Last updated:** [June 10, 2022, 3:14pm UTC](https://forums.creativeclouddeveloper.com/t/error-in-console-after-successful-exemodal-batchplay/4734 "2022-06-10T15:14:36Z")

</div>

Didn’t notice this before and not sure when it started happening, but running even the simplest BatchPlay produces an error: let exec = require('photoshop').core.executeAsModal(async () =\> { const result = require("phot…

---

## [\[Feature request\] How to tell if historyStateChanged event is for new state?](https://forums.creativeclouddeveloper.com/t/feature-request-how-to-tell-if-historystatechanged-event-is-for-new-state/4725)

<div class="topic-metadata">

**Author:** [@Karmalakas](https://forums.creativeclouddeveloper.com/u/Karmalakas)\
**Replies:** 5\
**Last updated:** [May 25, 2022, 5:19pm UTC](https://forums.creativeclouddeveloper.com/t/feature-request-how-to-tell-if-historystatechanged-event-is-for-new-state/4725 "2022-05-25T17:19:48Z")

</div>

My goal is to detect if there’s an active selection using notification listener. Initially I used set event and checked if that’s for (de)selection, but I figured I also need to check history state if user changes - I sh…

---

## [How to save some metadata on a document?](https://forums.creativeclouddeveloper.com/t/how-to-save-some-metadata-on-a-document/4587)

<div class="topic-metadata">

**Author:** [@Karmalakas](https://forums.creativeclouddeveloper.com/u/Karmalakas)\
**Replies:** 3\
**Last updated:** [May 7, 2022, 4:22pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-save-some-metadata-on-a-document/4587 "2022-05-07T16:22:59Z")

</div>

I’ve been trying for a few days now different ways to save some data on a document level, so that when document is opened again, plugin would perform some actions if that data is set. No luck at all :frowning: I didn’t …

---

## [Update and save Smart object via batchPlay](https://forums.creativeclouddeveloper.com/t/update-and-save-smart-object-via-batchplay/4613)

<div class="topic-metadata">

**Author:** [@gonya](https://forums.creativeclouddeveloper.com/u/gonya)\
**Replies:** 1\
**Last updated:** [May 3, 2022, 6:24am UTC](https://forums.creativeclouddeveloper.com/t/update-and-save-smart-object-via-batchplay/4613 "2022-05-03T06:24:57Z")

</div>

Hi there, this is my first rodeo with UXP so I’m sorry in advance if I’m doing something terribly wrong. I’m converting a layer to smart object and then open it and make some modifications. What I’m unable to do is afte…

---

## [Multiple commands in Batchplay](https://forums.creativeclouddeveloper.com/t/multiple-commands-in-batchplay/4106)

<div class="topic-metadata">

**Author:** [@Trasatti](https://forums.creativeclouddeveloper.com/u/Trasatti)\
**Replies:** 1\
**Last updated:** [January 5, 2022, 9:09am UTC](https://forums.creativeclouddeveloper.com/t/multiple-commands-in-batchplay/4106 "2022-01-05T09:09:46Z")

</div>

Good morning everybody, I’m a newbie :hugs: from Italy.and I have a question for you regarding Batchplay . When I launch a Batchplay calling it on the same way that LAYER\_CREATION-EXAMPLE does if the batchCommands const…

---

## [How to get fill and adjustment layers lists?](https://forums.creativeclouddeveloper.com/t/how-to-get-fill-and-adjustment-layers-lists/4050)

<div class="topic-metadata">

**Author:** [@Karmalakas](https://forums.creativeclouddeveloper.com/u/Karmalakas)\
**Replies:** 1\
**Last updated:** [December 19, 2021, 2:02pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-get-fill-and-adjustment-layers-lists/4050 "2021-12-19T14:02:43Z")

</div>

I know these are available also in menuBarInfo, but I’d like to get a string (eg. curves or blackAndWhite), that can be used in a BP make descriptor rather than command ID. Can’t find any similar property on Alchemist.
