Overview: My fax server saves incoming faxes as TIFF's, OmniPage auto-detects each, OCR's it and saves a PDF version in an incoming fax folder. Then the user either (a) sends a junk fax file to a Junk folder, or ( opens the folder in Adobe and saves it to one of many case folders.
I need to keep a data file audit trail of TIFF & PDF files as they are processed, so that I can know exactly what happened with each incoming fax. I believe that these four fields would be sufficient:
1. Path&FileNameOfOriginalPDF
2. DateTimeReceived
3. Path&FileNameOfSavedPDF
4. DateTimeSaved
Since, the PDF's are sequentially numbered (i.e., 01001.pdf, 01002.pdf, etc.), I figured that I'd set up a data file with those fields, initally populating it with a few thousand records where field 1 in each would have the FileName of the anticipated PDF files. I think I need two macros:
1. The first macro would monitor the folder, alert the user when OmniPage creates a new PDF file and enter its create date/time into the DateTimeReceived field.
2. The first macro would also open ExplorerPlus, prompt the user to click on the new file and look at it with the built-in viewer [i sure wish Mx could do that], and ask the user if Mx should move the file to a "junk" folder (i.e., fax spam) or open it in Adobe. If moved to a junk folder, that macro would also complete the last two fields.
3. If opened and then saved Adobe, a trigger would start a second macro which would enter the Path&FileNameOfSavedPDF into Field 3 and the DateTimeSaved into fields 3 and 4.
I think I may be able to write a macro to monitor the incoming fax folder for the appearance of #####.pdf, where #####.pdf is the name of the first file record in the data file for which there is yet no corresponding DateTimeReceived value in field 2.
'Problem is that I can't figure out how to write the values for fields 2, 3 and 4 to the correct record in an ASCII data file. I do remember studying BASIC many, many years ago (by torchlight), and that there was a command to open a data file and add values to specified fields.
Can you tell me how to add this data to the audit data file?
Thanks so much.
Jeff