Search and Replace Dialog (Printer Code Modifier) |
Use the Search and Replace (Printer Code Modifier) dialog to create, modify, and test actions for printer code modification. You can open this dialog from the General tab of the Printer Code Template Setup dialog or the Actions tab of the BarTender Document Options dialog.
The Actions list, which includes the list of actions and their configurations, can be transferred between installed instances of BarTender. To save the current locations in an XML file, click Export, and then browse to the destination directory that you want. After you save the XML file, you can load it into another instance of BarTender by using the Import option.
Actions List
The Actions list is located on the left side of the Search and Replace (Printer Code Modifier) dialog. This is a list of all the printer code modifier actions that will be run. Each action consists of text to be searched for; instructions to insert, replace, or delete that text; and the search method to be used. You can also specify the code page to be used. The actions in the list are performed in the order in which they appear, and each action makes a complete pass through the print code before it continues with the next action.
The following options are available:
Inserts a new action into the list.
Deletes the selected action.
Deletes the selected action and places a copy of the action on the Clipboard.
Copies the selected action to the Clipboard.
Pastes a copy of the action that is currently on the Clipboard into the list.
Moves the selected action up one position in the list.
Moves the selected action down one position in the list.
Action Options
Description: Specifies the name that identifies the selected action.
Action: Specifies the action to be performed.
Search Text: Specifies the text to be searched for in the print code. You can add control characters to the field by clicking the icon.
Replace Text: Specifies the text to replace instances of the search text. You can add control characters to the field by clicking the icon. Available when Search and Replace is selected as the Action.
Insert Text: Specifies the text to insert before or after instances of the search text. You can add control characters to the field by clicking the icon. Available when Search and Insert or Insert is selected as the Action.
Encoding: Specifies the code page to use with the replacement text.
Search Method: Specifies how BarTender searches the print code for instances of the search text. Available options include Literal, which specifies that the exact characters that are entered are searched for, or Wildcard, which specifies that special search characters can be used.
First Occurrence Only: Specifies that the selected action is performed only the first time that the search text is found in the print code.
Test: Opens the Modify File dialog, which you can use to test the list of actions and confirm that they behave the way that you want. The actions are performed by using the content of the specified source file and are exported to the destination file.
The following options are available:
Source File: Specifies the location of the print code file that is to be read.
Destination File: Specifies the location of the file where the results are exported to.
Automatically Overwrite Destination File: Specifies that the destination file contents are replaced if the file already exists.
Display Destination File After Modification: Opens the destination file after the search is complete.
Related Topics