Skip to main content
Inspiring
September 28, 2011
Question

Can we add menu item in "File->Scripts"?

  • September 28, 2011
  • 2 replies
  • 1713 views

Hi !!

I have a question. Is it possible to add a menu item in File->Scripts? I know that its is possible to add a menu item in the Scripts goroup. But, that will appear similar to the screenshot below.

But, I wanted to insert the menu item in the Scripts menu. Here is a screenshot of what I intend to do. The image is photoshopped to achieve the desired effect. So, do not think that I already have the solution!

Can we achieve this?

Please answer soon!

Thanks!

This topic has been closed for replies.

2 replies

Inspiring
September 30, 2011

kScriptsMenuGroup

ASErr

error=kNoErr;

AIPlatformAddMenuItemDataUS menuData;

AIMenuItemHandle itemHandle;

menuData.groupName=kScriptsMenuGroup;

menuData.itemText=ai::UnicodeString( “hahahahhahahahaah” );

error = sAIMenu->AddMenuItem(this->fPluginRef, "lalalalalalal", &menuData, kMenuItemWantsUpdateOption,&itemHandle);

A. Patterson
Inspiring
September 30, 2011

Alternately, if you have a script you just want to have show up there, drop the .jsx (or whatever else is supported) in [Program Files]\Adobe\Adobe Illustrator CS[version]\Presets\en_US\Scripts and it should show up automatically. I'm guessin there's a similar directory if you search for it (Presets) on the Mac.

poortip87Author
Inspiring
October 4, 2011

Hi..

I wanted to add a plugin menu item, not scripts... Can u guide me?

poortip87Author
Inspiring
September 29, 2011

Please answer folks..!! I need a solution.. Reply........

September 29, 2011

I looked into this briefly but it's either not possible, or not intuitive.  I didn't see any API to insert items into the Illustrator menus.