menu.getScript

Syntax menu.getScript (addr)

Params addr is the Object Database address where the script attached to the current menu bar cursor is to be placed.

Action Retrieves the script attached to the current menu bar cursor and places it in the Object Database at location addr.

Returns True if the script is copied, false if there is no script attached to the cursor headline.

Examples menu.getScript (@scratchpad.x)

   » true

Errors If the targeted window is not a menu bar editing window, an error message is generated.

See Also menu.setScript

Discuss