Skip to main content
Dhandapani_be
Known Participant
July 18, 2019
Question

Add customize menu

  • July 18, 2019
  • 2 replies
  • 1248 views

Dear team,

                      How to add menu in the Photoshop application via Script.

This topic has been closed for replies.

2 replies

SuperMerlin
Inspiring
July 18, 2019

You can not add a menu in Photoshop, you can add scripts to the Help Menu and the Filter Menu.

Geppetto Luis
Legend
July 18, 2019

You don't understand what you want

you could be more precise.

Dhandapani_be
Known Participant
July 18, 2019

Thanks for your replay.

                                    Just i add my tool in menu

Geppetto Luis
Legend
July 18, 2019

See if this is good for your purpose.

/*

<javascriptresource>

<name>Convert background to layer(2)</name>

<menu>filter</menu>

<about>JavaScript Convert background to layer with</about>

<category>Layer</category>

<enableinfo>true</enableinfo>

</javascriptresource>

*/

// Convert background to layer

var ptr = app.activeDocument.layers.length;

app.activeDocument.layers[ptr - 1].isBackgroundLayer = false;