Running Scripts
Mira provides a number of ways to run a script. The method to use depends on whether the script opens images from files, accesses displayed images or plots, or does not use any image data at all. Choose the method that applies to your script and target data:
Open the script into a Script Editor.
Run the script by clicking on the Script Editor's toolbar.
Open the script into a Script Editor.
Run the script by clicking on the Script Editor's toolbar.
In the script, use the CImageView: AttachFromList() or CPlotView:AttachFromList() method to select the target window from among the open windows.
Open the script into a Script Editor.
Run the script by clicking on the Script Editor's toolbar.
Any number of image windows, plot windows, or other windows are open. The desired script must be open in a Script Editor.
In the script, use the CImageView:Attach or CPlotView:Attach method to connect the target Image window or Plot window to the script.
Bring the target Image Window or Plot Window to the top of the stack (i.e., make it top-most). This causes the script to move behind the new Image or Plot window which becomes top-most.
Run the script by clicking the button on main toolbar. If other script windows are also open, Mira will open a list of open scripts from which to choose.
Make the target Image Window or Plot Window top-most.
Open the Script Manager and select the desired script.
Run the script by clicking the [ Run ] button on the Script Manager dialog.
Working with Scripts, Editing Scripts, Script Manager, Running Scripts from the User's Guide