hi,
I want to add new submenu in photoshop and illustrator's main menu bar??? in Indesign it is possibile by
InDesign.app.menus.item( "$ID/Main" ).submenus.add( "My Sub Menu");
but for photoshop and illustrator's, i have not got any solution.. will u pls help me???
That code looks like JavaScript. Are you looking to do this in JavaScript? For Photoshop you get a very limited amount of options as to where your script and/or plug-in will show in the menu system. For Filters you can create a submenu in the filter menu. Selection plug-ins go in the Select menu, etc. etc. The enable/disable of the menu item is controlled by your PiPL resource for a Filter. You give Photoshop a static description of when you should and should not be enabled and Photoshop controls the actual enable/disable logic from that description. Again via the PiPL resource.
JavaScripts have a little more flexibility but not much. You can read about the resources you put iniside of a JavaScript (jsx) file to get your script in the File > Scripts, File > Automate, Help, et.al. See the PDF's that are part of your install in the Scripting folder.
I would advise splitting your question up and posting to the Illustrator forum. I'm not sure about the JavaScript interface to menus In Illustrator but the C/C++ interface is much better in Illustrator for adding and controlling menu items.
North America
Europe, Middle East and Africa
Asia Pacific