7.4

Table Of Contents
General tab
l Action group
l Add: Select if you want the task to add content to the job file.
l Remove: Select if you want the task to remove content from the job file.
l Content: Select what the task will actually add or remove. Select Text file to add the whole content of a text file to the
beginning or end of the job file. Select Characters to add the string of characters entered in the Characters box to the
beginning or end of the job file, or to remove a given number of characters from the beginning or end of the job file.
Select Lines to add the lines of text entered in the Lines box to the beginning or end of the job file, or to remove a given
number of lines from the beginning or end of the job file.
l Position: Select whether you want the task to add or remove content from the beginning or end of the job file.
l Add CRLF after last line: Select if you want to add a CRLF (carriage return/line feed) character after the last line of
text added to the job file. This option is only available when you choose to add lines of text to the job file.
l ASCII file: Enter the path and name of the text file to be added to the job file, or use the browse button to navigate to
this file. This box is only displayed when the Text file option is selected in the Content box.
l Characters: Enter the string of characters to be added to the job file. This box is only displayed when the Characters
option is selected in the Content box.
l Lines: Enter the lines of text to be added to the job file.This box is only displayed when the Lines option is selected in
the Content box.
l Remove: Enter the number of characters or lines to be removed from the job file. This box is only displayed when
Remove is selected in the Action group and when the Characters or Lines option is selected in the Content box.
On Error Tab
The On Error Tab is common to all tasks. Details can be found on Task Properties Dialog.
If storing the message or ID, if they are store in a jobinfo they will be available in any error handling process where errors are
being forwarded. In all cases, if your process continues after the error, the contents of the variables selected in this window
will be available for the rest of your process, or whenever they are overwritten.
Common Errors
Though some error messages are specific to a task in particular, others may apply to any and all tasks because they are
related more to the system than to PlanetPress itself. Some examples would be W3813, W3830, W3991, W4005. These cor-
respond to issues such as not having any space to write files, permission errors on folders or files, etc.
Advanced Search and Replace
Advanced Search and Replace action tasks are used to locate and replace strings of data within the job file and to replace them
with other strings of data. Contrary to Search and Replace action tasks, they allow the use of regular expressions.
Using regular expressions, it is possible to search for patterns rather than specific strings. For instance, a pattern can be spec-
ified to find all valid email addresses or phone numbers within the data stream.
Input
Any text-based file can be used in this task, even formats that are not directly compatible with PlanetPress. As long as the text
is visible in a text-based editor (such as Notepad), it is readable and supported by this task.
Processing
The appropriate changes are made to the data file (replacing text).
Output
The modified data file is output from this task. Metadata is not modified in any way if it is present.