Piper Plugin for TheBat!
Piper is a simple plug-in for The Bat! e-mail client. It provides a macro which can be used to execute an external program, capture the output, and insert it back into The Bat!
Put the plug-in file 'piper.tbp' into some suitable location, and load it into The Bat! from Options->Preferences->Plug-ins.
Piper is very easy to use, just provide the program name (with full path if not in path or in same folder as the plug-in), and any command line arguments required.
The program name and each argument are quoted, and any double-quotes in the arguments are escaped.
Here are a couple of examples:
%Piper("mytool.exe","an argument","another argument")
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
Based on the plug-in example by Mark Wieder, Robert Rainwater, Stefan Tanurkov, Alexey Vinogradov.
Thanks to mouser for testing.