I wrote two small macros utilizing KM8's scripting support.
For more information, see the wiki Searching the Forum for Answers section.