There's a simple way to know which script is attached to which action (menu command, key, icon etc).
1.On the Window menu, point to Palettes and then click Script editor.
2.If the script editor is not empty, you may want to click the Clear button first, to empty the list.
3.Click the Capture button.
4.Now, perform the action (select a menu command, press a key, click the icon).
The name of the script appears in the Script Editor, under Command list.
In the below example, on the Article menu of the Pages main tab in Fred4, we clicked New article - the script name is NewFredArticle.
Note
Events, such as OnDrop, OnContextMenu and similar, unfortunately are not captured by the Script Editor.
Locating script in the add-ins code
See Locate scripts through Visual Studio Express search