Alternative to processing multiple files in succession
Posted: Wed Apr 28, 2010 11:25 pm
Hello,
Although I have made this same feature request in the past (I understand the difficulty), I will propose a different approach (it came to me in a dream .
I have many instances where I processes output from previous TextPipe files in succession.
It would save a lot of headaches if the process could be implemented all within a singe TextPipe file.
Currently I run in order:
TextPipe file #1: process and save output to file.
TextPipe file #2: load output file from #1, process and save output to file.
TextPipe file #3: load output file from #2, process and save output to file.
etc.
Here is an idea for processing all within the same TextPipe file.
Create a new special filter called: 'End/Re-Start'
How it would work:
1. All files for processing would load as usual and begin processing as normal.
2. Once a 'End/Re-Start' filter is encountered, TextPipe closes all open files as if it were done.
3. It then re-starts the entire file (loads all files, etc,) except this time processing starts right after the 'End/Re-Start' it stopped at.
4. It would only process within this block/end of file.
Files to process by the block would simply be controlled using the "Restrict to Filename" filter.
If possible, maybe all variables in memory can be retained between re-starts?
I am guessing this filter cannot be a sub-filter (meaning it can only sit on the main flow line).
This is like stringing together the files that would normally exist on their own. Because we already have the "Restrict to Filename" and "Secondary Output" filters for use...It seems this process (to me anyway) would be quite elegant
Is this feasible? It would be super powerful and save a lot of headaches of running multiple files in succession.
Thanks,
Brent
Although I have made this same feature request in the past (I understand the difficulty), I will propose a different approach (it came to me in a dream .
I have many instances where I processes output from previous TextPipe files in succession.
It would save a lot of headaches if the process could be implemented all within a singe TextPipe file.
Currently I run in order:
TextPipe file #1: process and save output to file.
TextPipe file #2: load output file from #1, process and save output to file.
TextPipe file #3: load output file from #2, process and save output to file.
etc.
Here is an idea for processing all within the same TextPipe file.
Create a new special filter called: 'End/Re-Start'
How it would work:
1. All files for processing would load as usual and begin processing as normal.
2. Once a 'End/Re-Start' filter is encountered, TextPipe closes all open files as if it were done.
3. It then re-starts the entire file (loads all files, etc,) except this time processing starts right after the 'End/Re-Start' it stopped at.
4. It would only process within this block/end of file.
Files to process by the block would simply be controlled using the "Restrict to Filename" filter.
If possible, maybe all variables in memory can be retained between re-starts?
I am guessing this filter cannot be a sub-filter (meaning it can only sit on the main flow line).
This is like stringing together the files that would normally exist on their own. Because we already have the "Restrict to Filename" and "Secondary Output" filters for use...It seems this process (to me anyway) would be quite elegant
Is this feasible? It would be super powerful and save a lot of headaches of running multiple files in succession.
Thanks,
Brent