You are looking at the HTML representation of the XML format.
HTML is good for debugging, but is unsuitable for application use.
Specify the format parameter to change the output format.
To see the non HTML representation of the XML format, set format=xml.
See the complete documentation, or API help for more information.
<?xml version="1.0"?>
<api>
  <query-continue>
    <allpages gapcontinue="Recording_utilities_usage_with_the_history_feature" />
  </query-continue>
  <query>
    <pages>
      <page pageid="477" ns="0" title="Receiving and sending image files">
        <revisions>
          <rev contentformat="text/x-wiki" contentmodel="wikitext" xml:space="preserve">&lt;div style=&quot;font-style: normal; font-weight: normal; margin-bottom: 6pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline&quot;&gt;&lt;font color=&quot;#000000&quot;&gt; When you receive image files, you do not pose a query or retrieve files from a list; you passively receive the images that are sent to you from another device. You can receive images from any device, including a computer running another copy of MIPAV, if your DICOM Receiver is turned on and the appropriate connection information was entered in the hosts table.&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-style: normal; font-weight: normal; margin-bottom: 6pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline&quot;&gt;&lt;font color=&quot;#000000&quot;&gt; You can send DICOM images to DICOM-compatible servers, imaging equipment, or to other MIPAV applications that are up and running. Only a copy of the image files are sent, the original files remain in your source directory.&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-style: normal; margin-bottom: 6pt; margin-left: 0pt; margin-right: 0pt; margin-top: 14pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt; To receive image files&lt;br /&gt;&lt;/font&gt;'''&lt;/div&gt;&lt;div style=&quot;font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;  1 Turn on the DICOM receiver if you have not already done so. To turn on the receiver, click File &amp;gt; DICOM &amp;gt; Enable DICOM Receiver in the MIPAV window. A check mark appears next to the command.&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;

{| border=&quot;1&quot; cellpadding=&quot;5&quot;
|+ '''Figure 16. The Enable DICOM Receiver command is located on the File menu in the MIPAV window &lt;br /&gt;'''
|-
|
[[Image:EnableDICOMREceiver.jpg]]

|}

&lt;br /&gt;
2 Click Hosts. The Hosts page appears.&lt;br /&gt;
3 Make sure that the device that is sending the images has an entry in the Servers panel. (Conversely, your connection information should be in their hosts table.)&lt;br /&gt;
4 Make sure that the default storage destination in the Storage Destination panel is the location where you want to store the images.&lt;br /&gt;
5 Wait until the images are sent to you. After the images are sent, you can turn off the DICOM receiver by unchecking the File &amp;gt; DICOM &amp;gt;Enable DICOM Receiver option.&lt;br /&gt;
'''To send image files&lt;br /&gt;'''
1 Click Send. The Send page (Figure 17) appears. &lt;br /&gt;
2 Verify that the directory listed in Source directory is the directory in which the image files you want to send are located.&lt;br /&gt;
If it is the correct directory, the image files that you want to send appear in the Listing panel.&lt;br /&gt;
If it is not the correct directory, do either of the following:&lt;br /&gt;
*Click Browse to navigate to the correct directory. &lt;br /&gt;
*Type the full path of the directory in Source directory. Click Up Directory to view the parent directory.&lt;br /&gt;
3 Select the destination to which you want to send the image files in Destination.&lt;br /&gt;
4 Select the images you want to send in the Listing panel.&lt;br /&gt;
5 Click Send Images to transmit copies of the selected images. Status messages that appraise you of the status of the send process appear in the Send status panel.&lt;br /&gt;
'''Note:''' The destinations reflect the entries in the Server panel on the Hosts page. If the destination does not appear in Destination, you need to create a new server in the Server panel on the Hosts page. For instructions, refer to &quot;DICOM Images&quot;.&lt;br /&gt;
To select more than one image file, hold down the &amp;lt;CTRL&amp;gt; or &amp;lt;SHIFT&amp;gt; key while you click the files you want to send.&lt;br /&gt;

{| border=&quot;1&quot; cellpadding=&quot;5&quot;
|+ '''Figure 17. The Send tab of the DICOM Communications Panel dialog box ''' 
|-
| rowspan=&quot;1&quot; colspan=&quot;2&quot; |
[[Image:DICOM_CommPanelSend.jpg]]
|-
|
&lt;div class=&quot;CellBody&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;Source directory&lt;/font&gt;'''&lt;/span&gt;&lt;/div&gt;
|
&lt;div class=&quot;CellBody&quot;&gt;Indicates the full path name for the directory where the image files you want to send are kept. To change the source directory, use Browse or Up directory. &lt;/div&gt;
|-
|
&lt;div class=&quot;CellBody&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;Browse&lt;/font&gt;'''&lt;/span&gt;&lt;/div&gt;
|
&lt;div class=&quot;CellBody&quot;&gt;Allows you to navigate to the directory for the images you want to send. When you click this button, the Open dialog box appears.&lt;/div&gt;
|-
|
&lt;div class=&quot;CellBody&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;Up directory&lt;/font&gt;'''&lt;/span&gt;&lt;/div&gt;
|
&lt;div class=&quot;CellBody&quot;&gt;Moves to the parent directory of the directory shown in Source Directory.&lt;/div&gt;
|-
|
&lt;div class=&quot;CellBody&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;Refresh dir.&lt;/font&gt;'''&lt;/span&gt;&lt;/div&gt;
|
&lt;div class=&quot;CellBody&quot;&gt;Updates the image files shown in the Listing panel.&lt;/div&gt;
|-
|
&lt;div class=&quot;CellBody&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;Listing panel&lt;/font&gt;'''&lt;/span&gt;&lt;/div&gt;
|
&lt;div class=&quot;CellBody&quot;&gt;Displays a read-only list of the image files in the source directory. &lt;/div&gt;
|-
|
&lt;div class=&quot;CellBody&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;Destination&lt;/font&gt;'''&lt;/span&gt;&lt;/div&gt;
|
&lt;div class=&quot;CellBody&quot;&gt;Indicates where the image files should be sent. Destinations in the drop down menu are the same as those listed in the hosts table (&lt;span style=&quot;font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;''&lt;font color=&quot;#000000&quot;&gt;Server&lt;/font&gt;''&lt;/span&gt; panel).&lt;/div&gt;
|-
|
&lt;div class=&quot;CellBody&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;Send Images&lt;/font&gt;'''&lt;/span&gt;&lt;/div&gt;
|
&lt;div class=&quot;CellBody&quot;&gt;Transmits copies of the selected image files to the destination indicated in Destination.&lt;/div&gt;
|-
|
&lt;div class=&quot;CellBody&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;Test connection&lt;/font&gt;'''&lt;/span&gt;&lt;/div&gt;
|
&lt;div class=&quot;CellBody&quot;&gt;Tests the connection between your server, or device, and the receiving or sending device.&lt;/div&gt;
|-
|
&lt;div class=&quot;CellBody&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;Send status&lt;/font&gt;'''&lt;/span&gt;&lt;/div&gt;
|
&lt;div class=&quot;CellBody&quot;&gt;Displays messages about the send process, such as whether it was completed successfully.&lt;/div&gt;
|-
|
&lt;div class=&quot;CellBody&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;Clear&lt;/font&gt;'''&lt;/span&gt;&lt;/div&gt;
|
&lt;div class=&quot;CellBody&quot;&gt;Erases all messages from the Send status panel.&lt;/div&gt;
|}

'''Next:''' [[Displaying and editing DICOM tag information]]

[[Category:Help]]</rev>
        </revisions>
      </page>
      <page pageid="478" ns="0" title="Recording scripts">
        <revisions>
          <rev contentformat="text/x-wiki" contentmodel="wikitext" xml:space="preserve">'''To record a script using the Scripts toolbar:'''&lt;br /&gt;
1 Start MIPAV. The initial MIPAV window and the Output window open.&lt;br /&gt;
2 Open the images on which you want to run the script. The MIPAV window expands.&lt;br /&gt;
3 Click the Start Recording Script icon on the scripting toolbar. See Figure 7.&lt;br /&gt;


{| border=&quot;1&quot; cellpadding=&quot;5&quot;
|+ '''Figure 7. Click the Start Recording Script icon to record a script'''
|-
|
[[Image:Script_RecordScript1.png]]
|}

'''Note:''' The Start Recording Script icon turns red to indicate that MIPAV is now recording a script.&lt;br /&gt;
4 The Record New Script dialog box (Figure 9) opens. The following placard message appears at the top of the dialog box: ''The script is now recording. Your actions will appear below''.&lt;br /&gt;
5 Open any previously created VOIs that you want to use with the images. Perform any algorithm or utility.&lt;br /&gt;
6 Repeat steps above as needed.&lt;br /&gt;
7 In the Record New Script dialog box, select File &amp;gt; Save. The Save dialog box opens. Type a name for the script and either the ''.sct'' or ''.xml'' extension in File name.&lt;br /&gt;
8 Click Save. The program saves the script in the scripts home directory.&lt;br /&gt;
9 Click File &amp;gt; Exit to close the Record New Script dialog box. The dialog box closes. You should now be able to select and run the script from Current Script. &lt;br /&gt;


{| border=&quot;1&quot; cellpadding=&quot;5&quot;
|+ '''Figure 9. Record New Script dialog box'''
|-
| rowspan=&quot;3&quot; colspan=&quot;1&quot; |
&lt;div class=&quot;CellBody&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;File&lt;/font&gt;'''&lt;/span&gt;&lt;/div&gt;
|
&lt;div class=&quot;CellBody&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;Open&lt;/font&gt;'''&lt;/span&gt;-Opens a previously saved script. When you select this command, the Open dialog box appears.&lt;/div&gt;
| rowspan=&quot;6&quot; colspan=&quot;1&quot; |
[[Image:Script_RecordScript2.png]]
|-
|
&lt;div class=&quot;CellBody&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;Save&lt;/font&gt;'''&lt;/span&gt;-Saves the script under the specified name. When you select this command, the Save dialog box opens.&lt;/div&gt;
|-
|
&lt;div class=&quot;CellBody&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;Exit&lt;/font&gt;'''&lt;/span&gt;-Closes this dialog box without saving the script.&lt;/div&gt;
|-
|
&lt;div class=&quot;CellBody&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;[[Image:iconOpen.jpg]] &lt;/font&gt;'''&lt;/span&gt;&lt;/div&gt; &lt;div class=&quot;CellBody&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;Open script &lt;/font&gt;'''&lt;/span&gt;&lt;/div&gt;
|
&lt;div class=&quot;CellBody&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;Open&lt;/font&gt;'''&lt;/span&gt;-Opens a previously saved script. When you select this command, the Open dialog box appears.&lt;/div&gt;
|-
|
&lt;div class=&quot;CellBody&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;[[Image:iconSave.jpg]]&lt;br /&gt;Save script&lt;/font&gt;'''&lt;/span&gt;&lt;/div&gt;
|
&lt;div class=&quot;CellBody&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;Save&lt;/font&gt;'''&lt;/span&gt;-Saves the script under the specified name. When you select this command, the Save dialog box opens.&lt;/div&gt;
|-
|
&lt;div class=&quot;CellBody&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;[[Image:iconPauseScripting.jpg]] &lt;/font&gt;'''&lt;/span&gt;&lt;/div&gt; &lt;div class=&quot;CellBody&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;Pause scripting &lt;/font&gt;'''&lt;/span&gt;&lt;/div&gt;
|
&lt;div class=&quot;CellBody&quot;&gt;Stops recording the script. When you select this icon, the icon changes to the Resume scripting icon.&lt;/div&gt;
|-
|
&lt;div class=&quot;CellBody&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;[[Image:iconRecordScript.jpg]] Resume scripting&lt;/font&gt;'''&lt;/span&gt;&lt;/div&gt;
| rowspan=&quot;1&quot; colspan=&quot;2&quot; |
&lt;div class=&quot;CellBody&quot;&gt;Activates the recording process again. When you select this icon, the icon changes to the Pause scripting icon.&lt;/div&gt;
|-
|
&lt;div class=&quot;CellBody&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;[[Image:iconInsertComment.jpg]] Insert comment&lt;/font&gt;'''&lt;/span&gt;&lt;/div&gt;
| rowspan=&quot;1&quot; colspan=&quot;2&quot; |
&lt;div class=&quot;CellBody&quot;&gt;Allows you to insert a comment into the script. When you select this icon, the Input dialog box opens. Type the comment in Enter comment and click OK. MIPAV adds your comment into the script after the word &lt;span style=&quot;font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;''&lt;font color=&quot;#000000&quot;&gt;Comment&lt;/font&gt;''&lt;/span&gt;.&lt;/div&gt;
[[Image:MIPAV_Scripting18.gif]]
&lt;br /&gt;&lt;div style=&quot;font-style: normal; margin-bottom: 3pt; margin-left: 0pt; margin-right: 0pt; margin-top: 9pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt; Figure 8. Input dialog box (A) showing a comment and (B) the comment as it appears in the scripting box&lt;br /&gt;&lt;/font&gt;'''&lt;/div&gt;
|-
|
&lt;div class=&quot;CellBody&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;[[Image:iconFreeMemory.jpg]] Insert command to collect garbage (free memory)&lt;/font&gt;'''&lt;/span&gt;&lt;/div&gt;
| rowspan=&quot;1&quot; colspan=&quot;2&quot; |
&lt;div class=&quot;CellBody&quot;&gt;Frees memory by inserting the command to collect garbage, a Java method that clears all unnecessarily reserved memory. For more information, refer to &quot;Saving a history of actions on images (TBD)&quot; .&lt;/div&gt;
|-
|
&lt;div class=&quot;CellBody&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;[[Image:iconInsertMIPAVExit.jpg]] Insert command to end MIPAV&lt;/font&gt;'''&lt;/span&gt;&lt;/div&gt;
| rowspan=&quot;1&quot; colspan=&quot;2&quot; |
&lt;div class=&quot;CellBody&quot;&gt;Inserts the command for exiting MIPAV (&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;Exit&lt;/font&gt;'''&lt;/span&gt;) into the script, which allows MIPAV to close as a part of the script.&lt;/div&gt;&lt;div style=&quot;font-style: normal; font-weight: normal; margin-bottom: 5pt; margin-left: 0pt; margin-right: 36pt; margin-top: 5pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline&quot;&gt;&lt;font color=&quot;#000000&quot;&gt; &lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;Caution&lt;/font&gt;'''&lt;/span&gt;&lt;nowiki&gt;: Do &lt;/nowiki&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;not&lt;/font&gt;'''&lt;/span&gt; use the Exit command in MIPAV scripts unless you are calling the script from another program or scripts (Perl, C , Windows batch, etc.).&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;
|-
|
&lt;div class=&quot;CellBody&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;Scripting box&lt;/font&gt;'''&lt;/span&gt;&lt;/div&gt;
| rowspan=&quot;1&quot; colspan=&quot;2&quot; |
&lt;div class=&quot;CellBody&quot;&gt;Displays the action commands (algorithms and utilities) and any comments in the script.&lt;/div&gt;
|-
|
&lt;div class=&quot;CellBody&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;Pause&lt;/font&gt;'''&lt;/span&gt;&lt;/div&gt;
| rowspan=&quot;1&quot; colspan=&quot;2&quot; |
&lt;div class=&quot;CellBody&quot;&gt;Stops recording the script. When you select this button, the name of the button changes to Resume.&lt;/div&gt;
|-
|
&lt;div class=&quot;CellBody&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;Enable Edit&lt;/font&gt;'''&lt;/span&gt;&lt;/div&gt;
| rowspan=&quot;1&quot; colspan=&quot;2&quot; |
&lt;div class=&quot;CellBody&quot;&gt;Paused the script recording first, then it allows you to make changes or corrections to the script. When you select this button, the scripting box turns from gray to white to indicate that 1) the script is paused and 2) that you can now type, copy, paste, or delete information from the script, and the button name changes to Disable Edit.&lt;/div&gt;
|-
|
&lt;div class=&quot;CellBody&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;Disable Edit&lt;/font&gt;'''&lt;/span&gt;&lt;/div&gt;
| rowspan=&quot;1&quot; colspan=&quot;2&quot; |
&lt;div class=&quot;CellBody&quot;&gt;Prevents any changes or corrections being made to the script from typing, pasting, inserting, or deleting information. It does, however, allow MIPAV to record actions on images. When you select this button, the scripting box turns from white to gray, and the button name changes to Enable Edit. It also restarts the script recording.&lt;/div&gt;
|-
|
&lt;div class=&quot;CellBody&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;'''&lt;font color=&quot;#000000&quot;&gt;Help&lt;/font&gt;'''&lt;/span&gt;&lt;/div&gt;
| rowspan=&quot;1&quot; colspan=&quot;2&quot; |
&lt;div class=&quot;CellBody&quot;&gt;Displays online help for this dialog box.&lt;/div&gt;
|}

'''Recording a script using the Scripts &amp;gt; Record Script menu'''&lt;br /&gt;
1 Start MIPAV. &lt;br /&gt;
2 Select Scripts &amp;gt; Record Script. The Record New Script dialog box opens. The following appears at the top of the dialog box: ''The script is now recording. Your actions will appear below''.&lt;br /&gt;

{| border=&quot;1&quot; cellpadding=&quot;5&quot;
|+ '''Figure 10. Recording a script via Scripts &amp;gt; Record Script menu'''
|-
|
[[Image:Script_RecordScriptMenu1.png]]
|}

3 Open an image on which you want to run the script. The MIPAV window expands. &lt;br /&gt;
4 Perform any algorithms or utilities that you want recorded in the script, as if you run recording from the Scripting toolbar.&lt;br /&gt;
'''For example,''' &lt;br /&gt;
flip the image twice applying step by step the Flip Vertically and then Flip Horizontally option. See Figure 11.
5 The following appears in the Record New Script window:&lt;br /&gt; &lt;div class=&quot;CellBody&quot;&gt;Flip(&quot;input_image_1 ext_image $image1&quot;, &quot;flip_axis string X&quot;)&lt;/div&gt; &lt;div class=&quot;CellBody&quot;&gt;Flip(&quot;input_image_1 image $image1&quot;, &quot;flip_axis string Y&quot;)&lt;/div&gt;
6 Then, save the image in MINC format using the Save As option and specifying an &lt;span style=&quot;font-style: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;&lt;nowiki&gt;*.mnc&lt;/nowiki&gt;&lt;/font&gt;&lt;/span&gt; extension in the dialog box. [ &lt;sup&gt;3&lt;/sup&gt;] The following string appears in the Record New Script window:&lt;br /&gt; &lt;div class=&quot;CellBody&quot;&gt; SaveImageAs(&quot;input_image_1 ext_image $image1&quot;, &quot;file_type string .mnc&quot;)&lt;/div&gt;&lt;div style=&quot;font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;

{| border=&quot;1&quot; cellpadding=&quot;5&quot;
|+ '''Figure 11. At the top: the flipping options available via the Image Toolbar. Below: the original image (A), the same image flipped vertically (B) and then horizontally (C)'''
|-
| rowspan=&quot;1&quot; colspan=&quot;3&quot; |
[[Image:Scripts_FliipingToolbar.png]]
|-
|
[[Image:Script_Image1Unflipped.png]]&gt;
|
[[Image:Script_Image2FlippedVertically.png]]
|
[[Image:Script_Image3FlippedHorizontally.png]]
|}

7 In the Record New Script dialog box, select File &amp;gt; Save. The Save dialog box opens.&lt;br /&gt;
8 Enter a name for the script, for example, &lt;span style=&quot;font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;''&lt;font color=&quot;#000000&quot;&gt;FlippingImagesTwice.sct&lt;/font&gt;''&lt;/span&gt;, and then press Save. By default, the script will be saved in the Scripts Home directory. See &quot;Scripts Home&quot; for details.&lt;br /&gt;
9 Click File &amp;gt; Exit to close the Record New Script dialog box. The dialog box closes. &lt;br /&gt;
10 Use the Refresh button on the Scripts toolbar to refresh the Scripts Home directory. &lt;br /&gt;
11 You should now be able to select and run the script from the Current Script box. See Figure 11.&lt;br /&gt;

==== To pause recording a script ====
{| border=&quot;1&quot; cellpadding=&quot;5&quot;
|+
|-
|
&lt;div style=&quot;font-style: normal; font-weight: normal; margin-bottom: 4pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline&quot;&gt;&lt;font color=&quot;#000000&quot;&gt; [[Image:iconPauseScripting.jpg]]&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;
|
&lt;div class=&quot;CellBody&quot;&gt;Pause&lt;/div&gt;
|-
|
&lt;div style=&quot;font-style: normal; font-weight: normal; margin-bottom: 4pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline&quot;&gt;&lt;font color=&quot;#000000&quot;&gt; [[Image:iconRecordScript.jpg]]&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;
|
&lt;div class=&quot;CellBody&quot;&gt;Resume Recording&lt;/div&gt;
|}

If you are interrupted or need to take a break while you are recording a script, use the Pause icon located on the Scripting toolbar. This allows you to stop recording the script. When you click Pause, the following message appears at the top of the Record New Script dialog box: &lt;span style=&quot;font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline&quot;&gt;''&lt;font color=&quot;#000000&quot;&gt;The script is now paused. Press Resume to resume recording&lt;/font&gt;''&lt;/span&gt;&lt;nowiki&gt;; and the Pause icon changes to Resume Recording. When you return to recording the script, click Resume Recording to resume.&lt;/nowiki&gt;&lt;br /&gt;


[[Running scripts]]</rev>
        </revisions>
      </page>
    </pages>
  </query>
</api>