Manage Scripts Panel
The Manage Scripts panel allows you to manage Python scripts, KNIME Workflows, or named macros that appear on the Scripts menu.
To open this panel, choose Scripts → Manage.
- Using
- Features
- Additional Resources
Using the Manage Scripts Panel
To change the name or command of a script, edit these fields directly in the table. To change the order in which the items appear in the Scripts menu, select a script and click the up and down arrow buttons. To delete or duplicate scripts and macros, use the Delete and Duplicate buttons.
To create submenus in the Scripts menu, edit the script names using a colon to separate the submenu name from the menu item. For example, to create a submenu, Color Atoms, with a menu item, Green, enter the following in the Name field:
Color Atoms:Green
To see the changes you have made to script names and locations, click Apply, then open the Scripts menu. When you are satisfied with the changes, click Close to close the Manage Scripts panel.
Note: Scripts that are placed in the mmshare-vversion/python/common directory of your installation and are referenced in a scripts.mnu file in this directory do not need to be installed. They automatically appear on the Scripts menu, in a separate section.
For information on creating Python scripts to use with Maestro, see the Python API web page.
Manage Scripts Panel Features
- Contents of the Scripts menu table
- Delete button
- Duplicate button
- Description button
- Arrow buttons
- Apply button
- Contents of the Scripts menu table
-
This table lists all the scripts currently installed and visible in the Scripts menu. The Name field lists the name of the script as it appears in the Scripts menu. The Command field lists the command that is run when you choose the script from the Scripts menu. These fields are populated from values specified in the script itself— see the Python Module Overview on the Python API web page.
You can select a script and delete it or duplicate it. You can reorganize the scripts by selecting them and using the arrow buttons to move them up or down in the table. The order they appear in the table is the order they appear on the Scripts menu.
- Delete button
-
Select a script in the table and click this button to remove it from the Scripts menu.
- Duplicate button
-
Select a script in the table and click this button to duplicate it. The duplicate script appears at the bottom of the table. You can then rename it, if you wish.
- Description button
-
Select a script in the table and click this button to display its description in a dialog box. The button is not available if the script does not have a description or if no script is selected.
- Arrow buttons
-
Select a script in the table and click these buttons to move it up or down in the table, and thus in the Script menu.
- Apply button
-
Click this button to apply your changes to the Scripts menu. You can then choose the Scripts menu and view your changes.