formatted text in clipboardData

Lars Brehmer larsbrehmer at mac.com
Wed Mar 31 09:04:56 EDT 2010


I am trying to use a script to put the text of three text fields into  
the clipboardData and then manually paste it into a Word document and  
keep the text formatting.

Field txt1 - font A Bold
Field txt2 - font B Regular
Field txt3 - font A Regular

If I copy and paste each of the 3 fields separately, the fonts and  
formatting are retained.

But with this script;

set the clipboardData["rtf"] to the rtfText of fld "txt1" && the  
rtfText of fld "txt2" && the rtfText of fld "txt3"

and then paste in the Word document, even when choosing "formatted  
text" result in all three becoming font A Regular. I have tried the  
same thing with htmlText and neither one works so far for me.

Is it possible to do what I am trying to do?

Cheers,


Lars



More information about the use-livecode mailing list