Closing filters from the command line
Posted: Wed Sep 09, 2009 7:02 pm
Hi guys:
I have a command file being loaded via the Z= switch. It loads a series of filters runned through files "old_a.html" and "new_a.html" alternatively :
filter 1 runs on file "old_a.html", pulls selected info to clipboard, and filter 2 grabs info from clipboard and puts to file "new_a.html" then the same story for filters 3 and 4, and so on 6 times (until filters 11 and 12)
Finally, the whole process is repeated for files "old_b.html" and "new_b.html", a total of 30 times.
The problem is that although I included the /CLEARFILTERS command at the end of each "a" "b" files loop in order to close the 12 filters and just reopen them for the next round, it doesnt work. Thus textpipe is getting flooded with several instances of the 12 filters until it hangs when it has around 50 filters open.
To be more precise : How do I close a filter from the command line (file) WITHOUT having to close textpipe itself ?; (this would force me to remake my .bat file and also split my commands.txt file being by the Z= switch, into 30 files !)
Thank you.
Below the sample code on the command file:
/F=filter1.fll
D:\N\old_a.html
/G
/F=filter2.fll
D:\N\new_a.html
/G
/F=filter3.fll
D:\N\old_a.html
/G
/F=filter4.fll
D:\N\new_a.html
/G
; and so on until filter12.fll
/CLEARFILTERS
/CLEARFILES
/F=filter1.fll
D:\N\old_b.html
/G
/F=filter2.fll
D:\N\new_b.html
/G
/F=filter3.fll
D:\N\old_b.html
/G
/F=filter4.fll
D:\N\new_b.html
/G
; and so on until filter12.fll
; and also until old_x.html and new_x.html
/CLEARFILTERS
/CLEARFILES
I have a command file being loaded via the Z= switch. It loads a series of filters runned through files "old_a.html" and "new_a.html" alternatively :
filter 1 runs on file "old_a.html", pulls selected info to clipboard, and filter 2 grabs info from clipboard and puts to file "new_a.html" then the same story for filters 3 and 4, and so on 6 times (until filters 11 and 12)
Finally, the whole process is repeated for files "old_b.html" and "new_b.html", a total of 30 times.
The problem is that although I included the /CLEARFILTERS command at the end of each "a" "b" files loop in order to close the 12 filters and just reopen them for the next round, it doesnt work. Thus textpipe is getting flooded with several instances of the 12 filters until it hangs when it has around 50 filters open.
To be more precise : How do I close a filter from the command line (file) WITHOUT having to close textpipe itself ?; (this would force me to remake my .bat file and also split my commands.txt file being by the Z= switch, into 30 files !)
Thank you.
Below the sample code on the command file:
/F=filter1.fll
D:\N\old_a.html
/G
/F=filter2.fll
D:\N\new_a.html
/G
/F=filter3.fll
D:\N\old_a.html
/G
/F=filter4.fll
D:\N\new_a.html
/G
; and so on until filter12.fll
/CLEARFILTERS
/CLEARFILES
/F=filter1.fll
D:\N\old_b.html
/G
/F=filter2.fll
D:\N\new_b.html
/G
/F=filter3.fll
D:\N\old_b.html
/G
/F=filter4.fll
D:\N\new_b.html
/G
; and so on until filter12.fll
; and also until old_x.html and new_x.html
/CLEARFILTERS
/CLEARFILES