I'm having a problem, I am using tools to run compilers for C source code. The problem I am having is that depending on the processor and other variables the parameters that are required for the tool are different. Is there any way that I can read these parameters out from a file, that way I can consolidate all my tools into one and have different read files for each source code. This would be preferable to have multiple tools. Also there are multiple users in our group and the tools need to be set up for each user and if the parameters change or we need a new tool created then some users are using the old parameters.
For something like this I think you would need to write a intermediate script/tool that would receive your current filename from Textpad.
This script could detect the filetype from the filename parameter and use this to find the correct parameters from the corresponding file and finally execute the "real" tool.
(I believe Textpad can also send both filename and extension as separate parameters to the script so it will not need to detect/parse the extension).