Feb 11, '04 09:10:00AM • Contributed by: cfoster
set the clipboard to «class ktxt» of ((the clipboard as text) as record)
How it works: The as text portion grabs the stylized text from whatever other junk may be surrounding it (which can be significant). As record splits out the style and text portions, and »class ktxt» grabs the plain text portion of that.
[robg adds: Enter the above line in Script Editor and save it (I saved it as a compiled application, though I don't think this matters). Save it into your user's Library -> Scripts folder so that it's accessible everywhere. Then, when you have text to convert, just choose the script from the drop-down Script menu prior to pasting, and you'll get a nice plain-text paste.]
