T-Filter question...
Posted: Wed Feb 18, 2009 1:15 am
Hello,
I thought I had this working correctly a few months ago, but I am not sure now
I am using a T-Filter, some matching filters, and then write results to file via Secondary Output Filter [test.tab].
Immediately upon leaving the T-Filter a Replace List: From File filter points to the file just written to in the T-Filter [test.tab]...it is not picking up the new [test.tab] content.
It appears that the T-Filter "Secondary Output Filter" does not close the file [test.tab]...thus making it unavailable for use by the Replace List until the entire TextPipe script is done.
If I run the script twice it then works of course...1st round it creates the test.tab file but is not written to until script is completely done. 2nd round test.tab has now been written to and now is available for Replace List.
Is this the way it works? If so, shouldn't the [test.tab] close...as if the T-Filter did not exist per your help for this filter? It would sure be powerful if did close so that a person could use that newly created file/content in the same TextPipe script further down the stream.
Thanks,
Brent
|--T-Filter
| +--Restrict to filenames matching perl pattern [input\.txt]
| |--Perl pattern [pattern]
| +--Merge output to file C:\test.tab
|
|--Restrict to filenames matching perl pattern [PartNumbers\.txt]
| |--Perl pattern [pattern]
| +--Replace list: C:\test.tab
| +--Merge output to file C:\results.txt
|
+--Output to clipboard
I thought I had this working correctly a few months ago, but I am not sure now
I am using a T-Filter, some matching filters, and then write results to file via Secondary Output Filter [test.tab].
Immediately upon leaving the T-Filter a Replace List: From File filter points to the file just written to in the T-Filter [test.tab]...it is not picking up the new [test.tab] content.
It appears that the T-Filter "Secondary Output Filter" does not close the file [test.tab]...thus making it unavailable for use by the Replace List until the entire TextPipe script is done.
If I run the script twice it then works of course...1st round it creates the test.tab file but is not written to until script is completely done. 2nd round test.tab has now been written to and now is available for Replace List.
Is this the way it works? If so, shouldn't the [test.tab] close...as if the T-Filter did not exist per your help for this filter? It would sure be powerful if did close so that a person could use that newly created file/content in the same TextPipe script further down the stream.
Thanks,
Brent
|--T-Filter
| +--Restrict to filenames matching perl pattern [input\.txt]
| |--Perl pattern [pattern]
| +--Merge output to file C:\test.tab
|
|--Restrict to filenames matching perl pattern [PartNumbers\.txt]
| |--Perl pattern [pattern]
| +--Replace list: C:\test.tab
| +--Merge output to file C:\results.txt
|
+--Output to clipboard