export RTF as file?

Dan Shafer revdan at danshafer.com
Wed Jan 19 22:59:06 EST 2005


Just for the sake of completeness, this works fine on OS X with Word, 
TextEdit, and BBEdit.

Dan
On Jan 19, 2005, at 5:47 PM, Chipp Walters wrote:

> I'm having problems with my RTF export.
> Can someone please try this and tell me if they get any results?
>
> create a new stack
> create a fld and type some text into it: "hello world"
> create a button with the script:
>
> on mouseUp
>     ask file "Save As:" with "Untitled.rtf"
>     if it is empty then exit to top
>     put it into tPath
>     put the rtfText of fld 1 into tContents
>     put tContents into URL ("file:" & tPath)
> end mouseUp
>
> Now, try and open the RTF file you just created. I'm getting nothing 
> in WordPad on XP. I don't have Word on this machine (hate M$).
>
> I've tried binfile as well. Anyone having success exporting RTF files?
>
> thanks in advance,
>
> Chipp
>
>
> -- 
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 265.7.0 - Release Date: 1/17/2005
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list