set the clipboard to «class ktxt» of ((the clipboard as text) as record)
open plain-clipboard in the applescript editor