Prakkanam, this is not the ansver.
Build Menu Item at ExtendScript Support by Jon S. Winters
This is both some simple and some complex code to construct a menu item in a menu.
One advantage of what this does is that it creates a stand alone script in the Scripts Panel folder that can be used to Assign a Keyboard Shortcut to a custom menu item -- something normally not possible.
Thanks for the reply.
But I dont want to add a new menu item for this.
I just want to assign shortcut an existing script in scripts panel
and that too from my VB application.
It was a sample of how you can do this. No need to add a new menu item...
In the sample the author creates or edit the shortcut file that InDesign uses for storing shortcuts.
It is in XML format and named with the extension ".indk" in the folder "InDesign Shortcut Sets"
That is the only way to do this, as far as i know, without writing a plug-in.
If it realy works in your case, i dont know.
Thank you so much.