# Move Layer to Front through batch-play works differently in PS 23.4.1

**URL:** <https://forums.creativeclouddeveloper.com/t/move-layer-to-front-through-batch-play-works-differently-in-ps-23-4-1/4814>\
**Category:** UXP Plugin API\
**Tags:** batch-play\
**Created:** [June 17, 2022, 1:56pm UTC](https://forums.creativeclouddeveloper.com/t/move-layer-to-front-through-batch-play-works-differently-in-ps-23-4-1/4814 "2022-06-17T13:56:16Z")\
**Posts on this page:** 1\
**Showing post:** 21

<div class="post-metadata">

**Author:** ![Karmalakas](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/karmalakas/32/1048_2.png) [@Karmalakas](https://forums.creativeclouddeveloper.com/u/Karmalakas)\
**Post date:** [June 23, 2022, 11:09am UTC](https://forums.creativeclouddeveloper.com/t/move-layer-to-front-through-batch-play-works-differently-in-ps-23-4-1/4814/21 "2022-06-23T11:09:36Z")

</div>

So no matter how I try, I still get that command is not available…  
Here are my descriptors:

```auto
[
    {
        "_obj": "select",
        "_target": [{"_ref": "layer", "_id": 2}],
        "makeVisible": false
    },
    {
        "_obj": "make",
        "new": {"_class": "channel"},
        "at": {"_ref": "channel", "_enum": "channel", "_value": "mask"},
        "using": {"_enum": "userMaskEnabled", "_value": "revealAll"}
    },
    {
        "_obj": "select",
        "_target": [{"_ref": "layer", "_id": 3}],
        "makeVisible": false
    },
    {
        "_obj": "make",
        "new": {"_class": "channel"},
        "at": {"_ref": "channel", "_enum": "channel", "_value": "mask"},
        "using": {"_enum": "userMaskEnabled", "_value": "revealAll"}
    },
    {
        "_obj": "select",
        "_target": [{"_ref": "layer", "_id": 2}],
        "makeVisible": false
    },
    {
        "_obj": "select",
        "_target": [{"_ref": "layer", "_id": 3}],
        "makeVisible": false,
        "selectionModifier": {
            "_enum": "selectionModifierType",
            "_value": "addToSelection"
        }
    }
]

```

No matter if I execute them in a single BP or one by one I get the responses for them:

```auto
[
    {},
    {
        "_obj": "error",
        "message": "The command “Make” is not currently available.",
        "result": -25920,
        "failedDescriptor": {
            "_obj": "make",
            "new": {"_class": "channel"},
            "at": {"_ref": "channel", "_enum": "channel", "_value": "mask"},
            "using": {"_enum": "userMaskEnabled", "_value": "revealAll"}
        }
    },
    {},
    {
        "_obj": "error",
        "message": "The command “Make” is not currently available.",
        "result": -25920,
        "failedDescriptor": {
            "_obj": "make",
            "new": {"_class": "channel"},
            "at": {"_ref": "channel", "_enum": "channel", "_value": "mask"},
            "using": {"_enum": "userMaskEnabled", "_value": "revealAll"}
        }
    },
    {},
    {}
]

```

Have to note, that none of the layers have any masks while trying to create one. Also, as mentioned previously, very very rarely it works as expected - masks are created (both in a single BP and in a separate calls)

Win10  
Ps 23.4.1  
API v2  
Manifest v4

---

_[View the full topic](https://forums.creativeclouddeveloper.com/t/move-layer-to-front-through-batch-play-works-differently-in-ps-23-4-1/4814)._
