Convert RTF Clipboard Contents to Plain Text
Much of the work I've been doing recently involves moving information between PDF and RTF documents. Often, the information I'm copying is formatted and Mac OS X presently copies that formatting by default. As a result, pasted text retains the formatting of the original copied text. This is usually unnecessary and often undesirable, especially if the formatting makes the text difficult to read in its new context.
As many of you know, however, converting RTF-formatted text on the clipboard to plain text is a nightmare. My old standby used to be to switch to BBEdit, open a new window, paste the clipboard contents, copy the pasted text, and switch back to the document I wanted to paste the text in. This is fine for a few pieces of information, but not when your workflow is built of shuttling bits of information back and forth between two RTF-sensitive contexts.
With frustration pracically flowing out of my eyeballs, I scoured Google results until I found a blog post by Nobumi Iyanaga which has an AppleScript at its end called "clip2pure_text". I modified the script so that it copied the results back to the clipboard like so