Archive for September 23rd, 2008

MEL: Find and edit the source of a procedure

Tuesday, September 23rd, 2008

The following script opens a MEL file in a text editor by checking where queried procedure is stored. As an example Notepad is used for Windows and Nedit for Linux.
Usage:
edit “procname”
Limitations:
The script only finds global procedures that have already been sourced

global proc edit( string $file ) {

    string $result = `whatIs $file`;

    string [...]