# Display wrong content when save psd by batchPlay command

**URL:** https://forums.creativeclouddeveloper.com/t/display-wrong-content-when-save-psd-by-batchplay-command/5991
**Category:** UXP Plugin API
**Tags:** bug
**Created:** [March 8, 2023, 8:59am UTC](https://forums.creativeclouddeveloper.com/t/display-wrong-content-when-save-psd-by-batchplay-command/5991 "2023-03-08T08:59:15Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Lichhuun](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/lichhuun/32/2541_2.png) [@Lichhuun](https://forums.creativeclouddeveloper.com/u/Lichhuun)
#### Post date: [March 8, 2023, 8:59am UTC](https://forums.creativeclouddeveloper.com/t/display-wrong-content-when-save-psd-by-batchplay-command/5991/1 "2023-03-08T08:59:15Z")

</div>

Hi everyone,

I get a trouble when execute multiple batchPlay, with following simple code, I expect that  
file psd is an output of process.

```auto
Photoshop.app.batchPlay(commands, executeOptions);
const sourceFileToken = a.jpg;
const fileToken = a.psd;
commands = 
      {
        _obj: "save",
        as: {
          _obj: "photoshop35Format",
        },
        in: {
          _path: fileToken,
          _kind: "local"
        },
        // documentID: sourceDocumentId,
        copy: true,
        lowerCase: true,
        _options: {
          dialogOptions: "dontDisplay"
        }
      }

```

=\> The command meaning try to save file opened in photoshop to psd.  
The result of command is **a.psd**

But when run multiple batchPlay for **b.jpg** , **c.jpg** , **d.jpg**  
The result of file **d.jpg** somehow is equal to **c.jpg** (same content, difference name)

Please let notify to me when someone get same error! have a nice day!

---

<div class="post-metadata">

### Author: ![Maher](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/maher/32/1432_2.png) [@Maher](https://forums.creativeclouddeveloper.com/u/Maher)
#### Post date: [March 8, 2023, 10:47am UTC](https://forums.creativeclouddeveloper.com/t/display-wrong-content-when-save-psd-by-batchplay-command/5991/2 "2023-03-08T10:47:16Z")

</div>

please share full code so we may help you better.  
also you can try:

`doc.saveAs.psd()`
