TextEdit's Default Format: RTF... Why?
Pages: 1, 2, 3
TextEdit and RTF
There's lots of fancy features that Word users are familiar with that are just not part of the RTF spec, and so they don't appear in TextEdit or any other RTF editor.
Some might even argue that RTF no longer has a place in modern word processing. HTML could be considered a better choice for cross-platform formatted documents, especially those that need to include some of the elements RTF does not support.
But TextEdit does allow simple tables, breaks, hyperlinks, and lists.
Most of these can be found lurking under the Format menu. One minor annoyance of TextEdit is that, despite being a Cocoa application, its toolbar is not customizable. Inserting tables and the like means quite a lot of mousing, something that could be speeded up if only it were possible to drag a button or two on to the toolbar.
Image support is there, too. Well, sort of. If you want to put a Microsoft-format image in an .rtf on Windows, you should be able to do so with a Bitmap (.bmp). With Mac OS X, you can add images of almost any sort, but the instant you do so your .rtf file changes into an .rtfd, which is a slightly different beast.
"RTFD" stands for "Rich Text Format Directory," and is one of those documents that's actually a directory or folder. Right- or Control-click on any .rtfd file and click "Show package contents." A Finder window will open up showing how this particular .rtfd file has been assembled. There will always be a txt.rtf file alongside a series of image files that have been dropped into the text. The .rtfd file is actually a folder with several files inside it; but in the Finder, it looks and behaves just like a standard .rtf.
Conclusion: RTF Stands for Simplicity
At this point, the interoperability for which RTF is so well known starts to falter. RTFD is relatively new, and some (only slightly) older machines and systems just don't recognize it.
Specifications and implementations have changed over the years. Throughout, the intentions have surely been to maintain a balance between features and portability, but it's a fine balance and one that is easily disrupted.
The simple upshot is this: the more complicated your RTF document, the greater the likelihood that it won't look the same when someone opens it on another computer running a different OS. It might be something as basic has different character sets, or two machines with different specs, one of which is out of date and doesn't know about this newfangled "tables" stuff. Whatever the problem, it's worth remembering that complexity and interoperability don't mix well.
Which brings me back to the earlier list of reasons to use RTF.
RTF is well suited to certain kinds of documents: basic ones. Letters, academic theses, school research, screenplays, novels--everything that's just page after page of words--are ideal in RTF.
More complicated stuff is either beyond RTF's functionality, or within it, but risks problems of cross-platform portability.
Rather than think of it as an alternative to Word's .doc, think of it as a tool for simple documents, and Word (or OpenOffice.org, or Pages, or whatever word processor you like to use) as a tool for complex documents.
"Use the right tool for the job" is an old cliché but it's a valuable one to remember here. Sometimes, using your (W|w)ord processor for something as simple as a letter to mom is overkill. Use a simpler tool instead.
Giles Turnbull is a freelance writer and editor. He has been writing on and about the Internet since 1997. He has a web site at http://gilest.org.
Return to the Mac DevCenter
You must be logged in to the O'Reilly Network to post a talkback.
Showing messages 1 through 13 of 13.
-
Thesis in rtf ?
2005-11-05 02:28:06 tiberido [Reply | View]
Format rtf is a good idea to write theses only is the subject is about Philosophy or something of the kind. For scientific texts LaTeX (http://www.macdevcenter.com/pub/a/mac/2004/02/03/latex.html) is better.
-
So... is Mellel, Nisus Writer et al's use of RTF sane?
2005-10-31 23:11:43 bioinfotools [Reply | View]
Probably too late to get an answer, but here goes:
Mellel and Nisus Writer (and no doubt others I'm not familiar with) are word processors for Mac OS X, nice ones too from what little I've seen of them. They use RTF as their "main" format. Is this sane given your remarks that RTF is a mess for more complex things?
Related to this, what are the chances that a reasonably complex document prepared on one of these programs will be correctly presented by another program based around RTF?
-
Now what?
2005-10-28 07:50:22 ryannagy [Reply | View]
Interesting article, but now what? I am in the process of writing a dissertation. Is the author saying that I can cut and paste it into text edit and work on it there? Or am I just dreaming? I will have some tables and graphs but no other images.
Suggestion? Thanks. - Ryan
-
Now what?
2005-10-30 15:56:26 Giles Turnbull |
[Reply | View]
Well, you *could* do, but that's not to say that you *should*. If you've already started working on it in another application, and you're happy with that, then stick to it.
-
HyperCard to RTF
2005-10-21 10:22:47 David_Ivory [Reply | View]
I remember writing some HyperCard code in 1992 to export cards to RTF so that I could write my thesis in HyperCard and maintain a Word readable document for submission to my supervisor. The reason being that it was easier to do this than the reverse.
Worked too. A year later I would have done it all in HTML... but that's another story.
I guess I should now finally write the code to convert the HyperCard stack to HTML... ah well
-
RTF Structure
2005-10-20 10:38:33 kiyookasan [Reply | View]
RTF is highly structured. What it is not is bloated. It was never meant to be written with a text editor. It was designed to flatten complex document structures into a character stream.
RTF can also handle embedded binary objects which are represented on OSX by 'RTFD' package folders. These package folders do not conform to RTF - it is an extension.
Gen Kiyooka
-
RTFD acronym
2005-10-19 08:11:10 jimothy [Reply | View]
Though I knew (or at least correctly guessed) the true meaning of RTFD, whenever I see a such a file, I can't help but think "Read the funny document" (replace "funny" with the word of your choosing). Which is pretty appropriate, considering I most often run across RTFD documents in the form of read-me files included with download programs.
-
RTFD
2005-10-19 04:34:57 z2 [Reply | View]
RTFD is not relatively new but is quite old, in fact about 15 years.
It was supported in NeXTSTEP which is where much of MacOS X came from. Nearly all of NeXT documents that included graphics were in RTFD format. I haven't tried, but I bet you can open those NeXT files on current MacOS X without problems.
And yes, the Edit.app on NeXT, predecessor of TextEdit.app, also had RTF as the default setting with the same capability of creating/opening RTFD.
-
RTFD
2005-10-21 11:17:36 robert dodson [Reply | View]
For some of us, something introduced 15 years ago is not quite old but pretty new.
Rob -
RTFD
2005-10-19 05:50:14 z2 [Reply | View]
Just tried it and, yes, MacOS X can open all of NeXT RTFD files just fine, including transparent rendering of EPS (Encapsulated PostScript with no previews) graphics. Beautiful!
This wasn't possible when MacOS X 1.0 came out, as it did not have EPS converter then. Congrats and thanks to NeXT, ...um, Apple developers for making this possible without fanfare.
-
RTFD
2005-11-15 05:34:20 leeg [Reply | View]
I finally ditched all my NeXT Mail mailboxes around 10.2, but until that point Apple Mail could read (but not compose) NeXT's rich text mail format (a tar'ed rtfd sent as a MIME part) too. However, as for why TextEdit's default format is RTF (when it should obviously be plain text), I have no idea. -
RTFD
2005-10-19 05:55:55 Giles Turnbull |
[Reply | View]
Heh, a happy result.





