Sample Scripts

This page provides information on working with the samples that are included with the Automation Plugin.

Convert Images

Converts selected images (and images in selected directories) using open source ImageMagick tools. This script can be easily adapted for other, typically conversion, operations with files. Features: recursive directory walking, file masks matching, calling external application (ImageMagick convert command), progress dialog box, overwrite dialog box with Yes, All, Skip, Skip All and Cancel buttons, error states handling, output log with opearation summary. Requires: ImageMagick (either x86 or x64).

Count Lines

Counts lines of selected files (and files in selected directories). Features: recursive directory walking, file masks matching, progress dialog box, error states handling with Retry, Skip, Skip All, and Cancel error dialog box, regular expressions, output log with opearation summary.

Launch Elevated Command Prompt

You can use this script on Windows Vista or later to launch elevated command prompt from the source directory. On Windows XP this script can launch the command prompt as a different user. This script demonstrates creating and using external automation objects.

Make Link

This script creates a symbolic link to the file or the directory focused in the source panel. This script demonstrates use of the InputBox method. Windows Vista or later is required to run the script.

Make List

This script performs similar function as the Make File List command built into the Altap Salamander. It creates list of the items in the source panel, saves it in the CSV format and opens it in the associated application. The script demonstrates use of the MsgBox method and iterating through the items collection.

Unpack Multiple Archives

Unpack selected archives (and archives in selected directories) using open source 7-Zip archiver. This script can be easily adapted for other unpackers. Features: recursive directory walking, file masks matching, calling external application (7-Zip archiver), error states handling, output log with opearation summary. Requires: 7-Zip (either x86 or x64).