SwapImages

Interchanges the TIF for the current page with another TIF that has the same file name but a different extension.

Syntax

bool SwapImages (StrParam)

Parameters

Two extensions:
  1. The extension to be saved as TIF.
  2. The current tif file's extension.

Returns

False if called at the wrong level, if the wrong number of parameters are specified, or if the original file cannot be found. True if the file extensions are interchanged.

Level

Page level.

Details

One possible use for this action is if you want to export the original version of the TIF file instead of the converted version of the image used to process the document. The original version of the TIF file had previously been renamed using the extension .TIO (where the O stands for Original). So in the example, the SwapImages action will be used to change the current .TIF file to instead have an extension of .TIB (where the B can stand for Backup), and then take the original file (.TIO) and give it the .TIF extension.
Example
SwapImages("TIB,TIO")
The action renames the current image TM00000n.TIF to TM00000n.TIB. It then copies TM00000n.TIO to TM00000n.TIF and that becomes the new current image.