menu.setScript
| Syntax |
menu.setScript (addr)
|
| Params |
addr is the Object Database address of the script you wish to attach to the menu item at the current menu bar cursor.
|
| Action |
Changes the script that will execute when the menu item at the current menu bar cursor is selected by the user.
|
| Returns |
True if the change in script is successful, false otherwise.
|
| Examples |
menu.setScript (@mystuff.newMenu) » true
|
| Errors |
If the targeted window is not a menubar editing window, an error message is generated.
|
| Notes |
This verb works on the target window.
|
| See Also |
menu.getScript
|