Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!

Open RTF files in Safari Web Browsers
I have to open RTF files every now and then, generally Read Me files for applications. But I don't like waiting for TextEdit to launch and then quitting it afterwards.

However, since I keep Safari open all the time, I have something much easier and quicker. Safari can read RTF files, so all I do is drag the file onto the Safari icon in the dock and it opens it right up, quickly and easily. It's much nicer than using TextEdit.

The only caveat is Safari can't read RTFD files, so if you have one of those you're stuck with TextEdit.
    •    
  • Currently 5.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[18,649 views]  

Open RTF files in Safari | 6 comments | Create New Account
Click here to return to the 'Open RTF files in Safari' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Open RTF files in Safari
Authored by: bluehz on Thu, Apr 3 2003 at 12:19PM PST
I just discovered something I have never heard or seen before (maybe I just missed it) while testing this hint. I wanted to see just what woudl happen if I dropped an .rtfd file on the Safari icon... nothing... Safari won't even accept the drag. So I thought I would get a little sneaky and change the .rtfd extension on the file to ".rtf" to see if that would fool Safari.... to my amazement, when I accepted the "Are you sure you want to add..." dialog... the Finder proceeded to create a dir in the same location as my original rtfd file and named original-filename.rtf and fill it with and rtf version of the file and extracted graphics from the file. It also works in reverse - if you change the name of the name of the dir containing the rtf and image files back to original-filename.rtfd, the Finder converts it back to an rtfd file!

[ Reply to This | # ]
Open RTF files in Safari
Authored by: tim1724 on Thu, Apr 3 2003 at 1:16PM PST

That's because an RTFD "file" actually is a directory. The finder isn't doing any "conversion" aside from changing the filename. The Finder knows that a folder with a ".rtfd" extension is supposed to be shown as a file, so it shows it as one. When the extension isn't ".rtfd" then the Finder doesn't know that it's an RTFD document so it shows it as a normal folder.

Note that if you want to see the contents of the folder even when the extension is ".rtfd" you can right-click on it and choose "Show Package Contents" to open the directory.

---
--
Tim Buchheim

[ Reply to This | # ]

Open RTF files in Safari
Authored by: maguirer on Thu, Apr 3 2003 at 5:05PM PST
What happens if you hold Option-Command as you drag the .rtfd document on Safari's Icon?

[ Reply to This | # ]
Open RTF files in Safari
Authored by: PancakeMan on Wed, May 28 2003 at 1:14PM PDT
I'm a newbie Applescripter using this hint as a way of solving a scripting problem, but it's still not working. I am trying to write a routine that, given an rtfd file, returns the rtf within.

This is what I have so far:

tell application "Finder"
activate SourceFolder
set the name of file (CurrentTitle & ".rtfd") to CurrentTitle
open folder CurrentTitle
set the name of file "TXT.rtf" to (CurrentTitle & ".rtf")
move file (CurrentTitle & ".rtf") to SourceFolder
end tell

I get an error "Can't set name of file ..."

Any suggestions?

[ Reply to This | # ]
Open RTF files in Safari
Authored by: maguirer on Thu, Apr 3 2003 at 4:58PM PST
Why not just leave TextEdit running?

[ Reply to This | # ]
Open RTF files in Safari
Authored by: aranor on Fri, Apr 4 2003 at 3:33PM PST
I don't like to leave stuff running that I'm not using. Sure, I leave BBEdit open all the time, but I use that frequently enough to warrant it. I just don't use TextEdit, except to view .rtfd documents, and I see one of those about every other week, so the dock real-estate and the RAM usage (minimal as it is) aren't worth it.

I just don't really like TextEdit.

[ Reply to This | # ]