Example 1

This command line in the Run box

escapee /from REPORT.CSV,FILENAME,PAGE

calls file REPORT.csv containing this text:

"FILENAME","PAGE"
"REPORT.prn","2"
"REPORT.prn","5"
"REPORT.prn","6"

The PAGE field supplies the value of 'startpagefield' but as no 'endpagefield' values are supplied, EscapeE 'eE' iconEscapeE fills in default values for you. This results in the first segment consisting of pages 2, 3 and 4; the second segment of just page 5 and third segment, just page 6.

You might then go on to use this command line:

escapee REPORT.PRN /csv /save fecr#? /fields COUNT.EE

to create a log file containing the file name and page number. A log record is written every time a field is encountered that has the 'Write log record' option selected (see Setting field actions), and also at the end of file. This file can then be read back and have the number of pages added using the {_numpages} special field. For example

escapee /from REPORT.CSV /pcl /fields MARKUP.EE

Example 2

A plain text log file may contain a "Text log file message". This can be set up on the 'Log file' page of the Configuration dialog (see Setting log file options) or on the command-line using the /LOGTEXT option. It can contain Special fields in composed strings as well as text. For example

escapee myfile.pcl /pdf /log 1T /logtext '{_Day}/{_Month}/{_Year} {_Hour}:{_Minute} input file {_ifilename}{_crlf}Exported as: {_ofilename}: {_sheets} pages'

The resulting log file "myfile.log" contains:

24/09/2009 15:15 input file C:\temp\myfile.pcl

Exported as: C:\temp\myfile.PDF: 5 pages

24/09/2009 15:15 input file C:\temp\myfile.txt

Exported as: C:\temp\myfile1.PDF: 2 pages

Should you wish to suppress the message on occasion, just add "~" to the /LOG options; there is no need to delete the "message":

escapee myfile.pcl /pdf /log 1T~ /logtext '{_Day}/{_Month}/{_Year} {_Hour}:{_Minute} input file {_ifilename}{_crlf}Exported as: {_ofilename}: {_sheets} pages'

Then if you want to return to showing the message, you only need to remove the ~ character.

Example 3

Command line options may be appended to component files specified in a LOF control file; see LOF details.

:\ESCAPEE
'C:\TEST\first file.pcl' /REM 'A3 example' /PAPER A3
'C:\TEMP\second file.pcl' /REM 'A4 example' /PAPER A4

Example 4

The syntax
/OPTIONS filename
allows an options file to be specified which contains a number of options. Each line of the file should be a statement of the form
option=value
as in this example file myopts.OPT:

PDF=Y

To=\\123.123.123.123\mine_pdf\maturity\{CNtext}_{IDtext}_{datetime}_{_bates:-6}.pdf

Fields=c:\nqroot\files\mine1.ee

ERRORLOG="C:\NQROOT\MINE-ERRORS\!!LPRJ;.LOG"

INI=c:\progra~2\RedTitan\software\RTEE.ini

x

The command line to export the file would simply be:

ESCAPEE /OPTIONS myopts.OPT

Example 5

Here each page in a PDF report is split into a separate file:

ESCAPEE C:\Reports\Spring.PDF /TIFF 1 /TO {_front}{_back}page{_page}.tif

Each file output is given a name determined by its page-number and whether it is a "front" or a "back" page:

C:\Reports\FRONTpage1.tif
C:\Reports\BACKpage2.tif
C:\Reports\FRONTpage3.tif
C:\Reports\BACKpage4.tif
...etc.