Help with creating a script to interact with QuickPAR
Posted: 30 Dec 2009 21:44
Here's what I would like to do:
I would like to be able to manually select a number of PAR2 files (it would end up being one within each set), and run a script that would execute those files (which would load QuickPAR and have it start authenticating the set) one at a time. Basically, I want the first one to run, and when QuickPAR is finished processing it (regardless of whether it needs repair or not), the next one would load, so on and so forth. This would leave as many QuickPAR windows open as were sets selected.
The reason for this script is that QuickPAR does not handle concurrent sets very well. It takes longer to run two sets simultaneously then it does to run them serially. But doing this by hand is a time-intensive process that requires you stay and watch and load the next set as needed. I would like a way to automate this process.
However, even if QuickPAR returned result codes (which I'm not sure it does), I'm not sure XY is capable of reading them. That would suggest that the best way to handle this might be to watch for the CPU load to drop below a certain threshold - which I don't think XY can do either.
So, I wanted to get other people's opinions on this. Would the best way to do this be to write an XY script that would hand off the list of selected file names (with paths) to an AutoHotkey script?
Or is there a better way?
I would like to be able to manually select a number of PAR2 files (it would end up being one within each set), and run a script that would execute those files (which would load QuickPAR and have it start authenticating the set) one at a time. Basically, I want the first one to run, and when QuickPAR is finished processing it (regardless of whether it needs repair or not), the next one would load, so on and so forth. This would leave as many QuickPAR windows open as were sets selected.
The reason for this script is that QuickPAR does not handle concurrent sets very well. It takes longer to run two sets simultaneously then it does to run them serially. But doing this by hand is a time-intensive process that requires you stay and watch and load the next set as needed. I would like a way to automate this process.
However, even if QuickPAR returned result codes (which I'm not sure it does), I'm not sure XY is capable of reading them. That would suggest that the best way to handle this might be to watch for the CPU load to drop below a certain threshold - which I don't think XY can do either.
So, I wanted to get other people's opinions on this. Would the best way to do this be to write an XY script that would hand off the list of selected file names (with paths) to an AutoHotkey script?
Or is there a better way?