Process all DM files in a folder and its subfolders
DigitalMicrograph - Gatan
Automation script for batch processing specific files from a folder structure. The script can be easily modified to perform different tasks.
Print all image documents with an optional frame
DigitalMicrograph - Gatan
This automation script will print all currently shown images in page mode using the default printer setting. The script will optionally add a rectangular border to the page.
Process all images on a workspace
DigitalMicrograph - Gatan
This automation script applies a processing method to all currently open images. The script is easily modified to perform different tasks on all currently open images.
Scale all images to a given value range
DigitalMicrograph - Gatan
This script normalizes the intensity values of all open images to a defined range [0 - max].
Sort images onto separate workspaces
DigitalMicrograph - Gatan
This automation script iterates over all currently shown images and selects them one by one. The user is asked to press either ALT or CTRL to move the shown image to one of two newly created workspaces, or SHIFT to end the script.
Calling a Command-Line command from script and showing its output
DigitalMicrograph - Gatan
The script uses the Command-Line command "ipconfig" and outputs its results into a new text window of DigitalMicrograph. The script is a useful blueprint for similar tasks that can be performed from the regular Windows Command-Line.
Having a script wait for a file to appear
DigitalMicrograph - Gatan
Example script which holds its execution until a certain file is found at a given location. Checking is performed on the main thread at given intervals.
Launching an external application and regularly checking if it is still running
DigitalMicrograph - Gatan
Example script showing how the external application Notepad.exe can be launched. The script regularly polls whether or not Notepad.exe is still open so that actions can be performed once the external application is closed.
Run VisualBasic script
DigitalMicrograph - Gatan
Example showing how a VBS script stored as a file on the hard drive can be executed from a DigitalMicrograph script.