A major bit of happiness, years ago, was when I discovered MacPerl and how to manipulate the clipboard (in a text-only form, alas) from Perl. And on MSWin, there is Win32::Clipboard, for doing just that. I've recently been talking with that module's author, Aldo Calpini, about making it easier to read and write to the non-plaintext parts of the clipboard. Notably, when I'm in MSWord or whatever, and select and copy some text, it gets put in the clipboard in several different formats. Some are in an internal format specific to MSWord (or whatever application), some are just versions of plaintext, but there's also several styled text formats, which preserve font name and size, formatting features like italics and bold, etc..
Apparently the de-facto "standard" format for expressing styled text on the MSWin clipboard is Rich Text Format, RTF. That pleases me!
With the next version of Win32::Clipboard, I should be able to read the RTF from Perl, alter it, and put the altered version back on the clipboard. Whee!