Saving to rtf

Hi,

I need to save the contents of a text view “texttowrite” (I do not know how to edit the name of a scrollview) to rtf format using the default script that xcode gives you when you create a new project (document.applescript). How do I do this?

Thanks

Jack Shiels

Hi :slight_smile:

You can look at the “Plain Text Editor” exemple provided with DevTools at this path: “/Developer/Examples/AppleScript Studio/Plain Text Editor/”
:wink:

This only saves in .txt format, I need rtf.

Ho… excuse me, I thought that it was possible, sorry.

You can look at “NSText Class Reference” and “RTF Files and Attributed Strings” for Cocoa methods…

:slight_smile: