|
|
This chapter introduces you to the basics of using TextSpresso batch documents. A batch document is a document which contains a list of text files on disk to operate on. When you apply a filter to a batch document all of the text files listed in the document are filtered. Batch documents make it easy to quickly process a set of files. Rather than having to open and filter each one individually, as you would have to do with some of our competitors, you can filter all of them at once with a single click.
To create a new TextSpresso batch document, do the following:
You will see a new document window for viewing and editing your new batch document.
Batch documents which have been saved to disk are opened the same way that normal text files are opened. To open an existing batch file do the following:
The batch file will be opened up into a new batch document window.
Batch documents can be saved to disk. A batch file does not contain the text of each file in its list. Instead it contains an alias to each file so that it can find the file again when opened.
To save a batch document, do the following:
To close an open TextSpresso batch document, do one of the following:
If you have not saved the document since the last change, TextSpresso will first ask you if you would like to save it.
Holding down the option key while selecting Close or clicking the close box closes all open documents.
There are basically only two things you can do to a batch document. You can add files to the list of files to be processed. Or you can remove files from the list.
Adding Files: To add one or more files to a batch document, do the following:
Removing Files: To remove one or more files from a batch document, do the following:
Note that this does not delete the files from disk. It only removes them from the batch document.
Applying a filter to a batch document is very easy. When you apply a filter to a batch document, all of the listed files are filtered. Please note that undo support is not available for batch documents. Be sure to back up your files before batch processing them!
Applying A Filter: To apply a filter to all of the files in a batch document, do one of the following with the batch document in front:
Controlling Filters: The document statistic fields at the top of the batch document window will mark the progress of the filter, displaying the name of the current file being filtered, the name of the filter being applied, and the percent completed. You can control the filter by doing the following:
Counting: You can use Replace Text and Replace Pattern filters to count the number of occurrences to be filtered in batch documents as well. With the batch document in front: