Hello Everyone,
I have a log.txt file in the format:
================================================
[Jan 25 2012 11:26:03] - ID2PDF v.2.6 (ID2PDF.jsx)
General options: [default] (ID2PDF_options.xml)
================================================
Loaded options from XML file: '/the/path/to/file/ID2PDF_options.xml
extendedPrintPDF started
Postfix '4.4' was append from file 'FNM040112ArtichokeHandbook_lo-metadata.xml' for file: /the/path/to/file/FNM040112ArtichokeHandbook_lo.indd
printPDF started
PDF Export Preset: Hearst PDF 1.6_1_16_08
PDF file created: '/the/path/to/file/some_filey_namex_lo_4.4.pdf'.
File filename_lo-metadata.xml removed
postprocessingDocument started
INDD file removed: /the/path/to/file/some_file1_name_lo.indd
Error opening document: /the/path/to/file/some_file_name_lo.indd: Error: Either the file does not exist, you do not have permission, or the file may be in use by another application; line: 190
================================================
[Feb 24 2012 15:57:43] - ID2PDF v.2.6 (ID2PDF.jsx)
General options: [default] (ID2PDF_options.xml)
================================================
Loaded options from XML file: '/the/path/to/file/some_options.xml
extendedPrintPDF started
extendedPrintPDF: Error: Unsaved documents have no full name.; line: 332
extendedPrintPDF started
extendedPrintPDF: Error: Unsaved documents have no full name.; line: 332
I want to catch the "Error" and then the error message (like Unsaved documents have no full name) or just "Error opening document", filenames of all pdf files being created, and the date of each entry.
I'm a newbie and do not really know how I should go about doing this.
Sorry for the long question. But, I wanted to make sure I was providing all the information.
Would appreciate any help.
Thanks.