I have a script that tries to read an RTF file to the Windows clipboard so that the clipboard data can be pasted into Word and other RTF-aware applications as formatted text. Unfortunately, the script always pastes the "raw" RTF code (with all the curly brackets, etc.), not formatted RTF text. I've studied the help file and searched the forum, but haven't come up with an answer,
Here is the relevant part of my code (simplified):
$outfile = outfile.rtf
$txthandle = FileOpen($ou