WiseImage script

A WiseImage script is a text file with one command on each line.
A script file can be created for standard processing of a loaded image and this file used to handle a number of images. To do so, create a script file containing the sequence of commands that load an image, invoke the standard processing scenario, and then save the resulting image or document for every image. WiseImage script files can be created in WiseImage using the dialog window Tools > Script Studio. It is the easiest way to create scripts – there is no need to know the syntax of a WiseImage script to create it when using Script Studio.
Script files can be created externally using a text editor (such as Microsoft Windows Notepad) or a word processor (such as Microsoft Word) that can save the file in ASCII format. The file extension must be .SCF.
WiseImage also creates a log file for each script execution that contains the script execution date and all error messages that occur. The log filename is defined in the script file otherwise the default log filename that is set in WiseImage Preferences dialog is used. If a script file contains syntax errors, then it will not be executed and the description of errors will be written into the log file.

WiseImage script launching

There are four ways to run a WiseImage script.
1) It can be done from WiseImage using Run Script command in the Tools menu.
2) Also a script can be started from the command line using a special program call.
A program call consists of three parts separated with space symbols.
Syntax:
WiseImage_executable_file { -K | -C } [ -L ] WiseImage_script_file
Parameters:
WiseImage_executable_file – The name of the WiseImage executable file (WI7.EXE by default). The second part is a special parameter:
-K – Starting the application and executing the WiseImage script.
-C – Indicates that the application must execute the script file in background mode (the application window is not displayed while the script is executing).
-L – Defines the log file.
WiseImage_script_file – The path to and the name of the script file that is to be executed.
Example:
WI7.EXE -C -L /Script/ColourRaster.csf
3) A script can also be started directly from the Script Studio dialog.
4) The last way to is to unite several scripts in the batch in the Tools > Batch studio dialog and apply it to selected images.

Script examples

WiseImage script examples can be found in the SCRIPTS subfolder of the WiseImage program folder.

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment