# Are Nested Menu Items Available?

**URL:** https://forums.creativeclouddeveloper.com/t/are-nested-menu-items-available/3349
**Category:** UXP Plugin API
**Created:** [July 22, 2021, 2:03pm UTC](https://forums.creativeclouddeveloper.com/t/are-nested-menu-items-available/3349 "2021-07-22T14:03:14Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![IanBarber](https://avatars.discourse-cdn.com/v4/letter/i/94ad74/32.png) [@IanBarber](https://forums.creativeclouddeveloper.com/u/IanBarber)
#### Post date: [July 22, 2021, 2:03pm UTC](https://forums.creativeclouddeveloper.com/t/are-nested-menu-items-available/3349/1 "2021-07-22T14:03:14Z")

</div>

On a previous post someone kindly showed a function to run a menu item.  
Whay I have found is that this doesnt appear to work for Nested Menu items because the menu item is different on different computers which I find strange.

I am trying to open the Gaussian Blur Dialog which on my Mac has an id of -356 but on a different computer it shows a different id value.

Am I missing something

```auto
function menuCommand(id) {
    require('photoshop').core.performMenuCommand({
      commandID: id,
      kcanDispatchWhileModal: true,
      _isCommand: false
    });
}

menuCommand( // put menu id here);

```

---

<div class="post-metadata">

### Author: ![Pierre\_G](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/pierre_g/32/971_2.png) [@Pierre\_G](https://forums.creativeclouddeveloper.com/u/Pierre_G)
#### Post date: [July 22, 2021, 2:18pm UTC](https://forums.creativeclouddeveloper.com/t/are-nested-menu-items-available/3349/3 "2021-07-22T14:18:25Z")

</div>

You might want to try this, without the use of nested menus, the Gaussian Blur dialog menu pops up. Hope this is what you want.

```auto
const batchPlay = require("photoshop").action.batchPlay;

await batchPlay(
[
   {
      "_obj": "gaussianBlur",
      "radius": {
         "_unit": "pixelsUnit",
         "_value": 30
      },
      "_isCommand": true,
      "_options": {
         "dialogOptions": "display"
      }
   }
],{
   "synchronousExecution": false,
   "modalBehavior": "fail"
});

```

---

<div class="post-metadata">

### Author: ![IanBarber](https://avatars.discourse-cdn.com/v4/letter/i/94ad74/32.png) [@IanBarber](https://forums.creativeclouddeveloper.com/u/IanBarber)
#### Post date: [July 22, 2021, 2:24pm UTC](https://forums.creativeclouddeveloper.com/t/are-nested-menu-items-available/3349/4 "2021-07-22T14:24:32Z")

</div>

@Pierre_G thats worked fine on my Mac, just going to load Windows and test it.

May I ask how you found this, ive been trying for hours

Ian

---

<div class="post-metadata">

### Author: ![Pierre\_G](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/pierre_g/32/971_2.png) [@Pierre\_G](https://forums.creativeclouddeveloper.com/u/Pierre_G)
#### Post date: [July 22, 2021, 2:28pm UTC](https://forums.creativeclouddeveloper.com/t/are-nested-menu-items-available/3349/5 "2021-07-22T14:28:28Z")

</div>

I just used Alchemist in Listening mode, and went to Ps menu for Gaussian Blur on a raster layer, that’s it.

---

<div class="post-metadata">

### Author: ![IanBarber](https://avatars.discourse-cdn.com/v4/letter/i/94ad74/32.png) [@IanBarber](https://forums.creativeclouddeveloper.com/u/IanBarber)
#### Post date: [July 22, 2021, 2:42pm UTC](https://forums.creativeclouddeveloper.com/t/are-nested-menu-items-available/3349/6 "2021-07-22T14:42:32Z")

</div>

Well blow me down as we say here in the UK.  
I was looking in the wrong place trying hunt down a menu id to use in the above code.

Thank you so much.

---

<div class="post-metadata">

### Author: ![Pierre\_G](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/pierre_g/32/971_2.png) [@Pierre\_G](https://forums.creativeclouddeveloper.com/u/Pierre_G)
#### Post date: [July 22, 2021, 2:44pm UTC](https://forums.creativeclouddeveloper.com/t/are-nested-menu-items-available/3349/7 "2021-07-22T14:44:19Z")

</div>

I hear you 🙂 Glad it helps!

---

<div class="post-metadata">

### Author: ![assitburn](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/assitburn/32/1499_2.png) [@assitburn](https://forums.creativeclouddeveloper.com/u/assitburn)
#### Post date: [July 22, 2021, 3:19pm UTC](https://forums.creativeclouddeveloper.com/t/are-nested-menu-items-available/3349/8 "2021-07-22T15:19:06Z")

</div>

Strange…

It seems that the menu ids will change after a new version is installed.

In one version it opens the Liquify, in the next it will open Dry Brush…

That is not a good new.

---

<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: [July 22, 2021, 3:43pm UTC](https://forums.creativeclouddeveloper.com/t/are-nested-menu-items-available/3349/9 "2021-07-22T15:43:27Z")

</div>

> [@assitburn](#):
>
> It seems that the menu ids will change after a new version is installed

I think I know what I’m doing today after work 😅

---

<div class="post-metadata">

### Author: ![assitburn](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/assitburn/32/1499_2.png) [@assitburn](https://forums.creativeclouddeveloper.com/u/assitburn)
#### Post date: [July 23, 2021, 5:21am UTC](https://forums.creativeclouddeveloper.com/t/are-nested-menu-items-available/3349/10 "2021-07-23T05:21:07Z")

</div>

Yesterday I got the confirmation.

if you have a menu id that is using a “-” befor the number it is not a static one and will change on each release and may be different from a windows to a mac client.

The promise is that the programmer-team has this problem on the roadmap but when this might be no problem any more no one can say…
