For better accessibility, you can save your scripts or commonly used runtime commands to the shelf, or to the marking menu.
Middle-drag your script or command to the shelf to save it. See Make a shelf button for a script.
To create a custom marking menu with your script
Click Create Marking Menu to create a new marking menu.
Do either of the following:
If you choose this method, and your .mel file contains more than one global procedure, you must call myCommand before you call other global procedures in your file. Therefore, this may not be your preferred method in this case.
After a script is sourced, you can call any of its global procedures and in any order.
If (!`exists myFunction`) source myFile; myFunction;
Related topics