Skip navigation
ritesh_gcet
Currently Being Moderated

photoshop and illustrator's menu

Dec 5, 2011 1:55 AM

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???

 
Replies
  • Currently Being Moderated
    Dec 5, 2011 10:04 AM   in reply to ritesh_gcet

    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.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points