Friday Favorite: TextEdit
What's free, flexible, easy-to-use but powerful and can handle a wide variety of file types? Our good friend, TextEdit, an app that ships with every Mac. TextEdit is, of course, a simple text editing tool like Notepad or WordPad on Windows. But there's a lot more to "simple text editing" that you might imagine, especially when TextEdit connects to services and other apps. I'm going to show you a few cool things you can do with TextEdit: create an inbox, use it as a development tool, or grab snippets of text on the go.First, you should know that TextEdit defaults to the .rtf format. If you're not familiar with it, RTF is "rich text" and, unlike the .txt files generated by something like NotePad, RTF includes formatting, like bold or italics or bullet lists. "Plain text" .txt files are pretty much just the basic ASCII characters and paragraph breaks. So what? Well, if you want things to look pretty, you'll stick with .rtf, a format which is easy to share across platforms. Side note: did you know TextEdit will open Word documents? It isn't perfect, but it works if you don't have Word on your machine. The older .txt format is better for coding or when you don't need or can't have formatting.
To create an inbox, I suggest the simpler .txt format. What I used to do was set up Quicksilver to easily append to an inbox.txt file, and I used GeekTool to pin that .txt file to my desktop. You could also use LaunchBar to append, and I'm sure there's a way to whip up an AppleScript, but I never bothered. Instead, when I ditched Quicksilver, I started keeping the text file in the Dock, and I just open it up to add items. All this is portable, indexed by Spotlight, and fully cross-platform compatible.
Next up: munging HTML with TextEdit, and grabbing snippets of text from any app and dropping them into a file.
Now TextEdit isn't anywhere near as powerful as something like TextMate or even Smultron, but the simple fact that you can easily convert RTF to TXT is useful (same goes for "downgrading" Word documents). Similarly, according to a tip on Mac OS X Hints, you can convert formatted text to HTML. You set the text format in the Format menu, and if you convert a file to TXT, you're all set to write any type of code you like. So, you could edit hidden configuration files. But TextEdit actually allows you do a little HTML insertion as well. Under Format > Text there's a series of commands like "Link" and "Table" which will render just fine if you go to Save As... and choose HTML. More about creating web content with TextEdit here.
For our final trick, there's grabbing snippets. Let's say you go to a website and you want to grab some text and put it in a text document. OS X actually provides a nifty framework for these sorts of things, called "Services." To do this, select some text from Safari, then go to the Safari menu and choose Services, which could open up a large or small list of available services. Look for TextEdit and choose New Window Containing Selection. Voila! A new document with the selected text.
There are plenty of other things TextEdit can do. Check these links out:
TextEdit Used to Create a Text Graphic
Typography in TextEdit (excerpt from Pogue's excellent Mac OS X The Missing Manual)
Editing hidden configuration files with TextEdit
TextEdit creative tricks
Save time with TextEdit
Creating web content with TextEdit
Got more stuff you can do with TextEdit? Share it in the comments.
Share
Categories
What's free, flexible, easy-to-use but powerful and can handle a wide variety of file types? Our good friend, TextEdit, an app that ships...
Add a Comment
We had been using Word for a process where we had to count characters on a line. Now Word no longer has that feature and someone said we had to use a text editor. I went to TextEdit but didn't see that feature. Is the feature there, or can anyone recommend another text editor application for the Mac that can count characters? Thanks, Bill
April 23 2009 at 8:05 PM Report abuse Permalink rate up rate down ReplyNot sure if it still works, but here's a word counter for textedit:
http://memex.naughtons.org/archives/2008/02/03/4784
TextEdit is my most-used app after Safari, for saving bits of text and longer docs on the computer, notes to self, records of jobs, invoices, information of all kinds, etc. I set up Macs for people, and include docs explaining the computer and many things about it, all done in TextEdit, with pictures and live weblinks. TextEdit is very capable, and fun to explore and work with.
Another nice thing about TextEdit is that Apple's open-sourced it, so anyone can take the code and build on it; two results are Bean (http://www.bean-osx.com/Bean.html) and iText Express (http://homepage.mac.com/lightway/iText/iTextExpress/TryiTxtExp.html); both add features like adjustable margins and headers/footers/page numbers to make a fine basic word processor. Bean has been compared with the late, lamented WriteNow (http://en.wikipedia.org/wiki/WriteNow); while iText Express will do vertical Japanese/Chinese text.
RTF is so annoying. Ever tried to work with tables then you know. Is from Microsoft, maybe that's why.
April 19 2009 at 5:59 AM Report abuse Permalink rate up rate down ReplyYeah, why ditch quicksilver?
April 18 2009 at 11:58 PM Report abuse Permalink rate up rate down ReplyI'm with the 2nd poster. Editing inbox.txt? So how to use a browser-default text editor to keep a list of to do items? Surely that's just pointing out the obvious?
And keeping your code snippets in a text file using the browser-default text editor? That's not exactly a revelation.
Unless I'm missing something? Does inbox.txt have some higher function than just being a text file where you're manually dumping a list?
Educate yourself:
http://wiki.43folders.com/index.php/GTD_System_To_Manage_Your_Life_in_.TXT
Speaking of QS, what's up with it? Has any progress been made on the rewrite/Dev since it went open source and moved to GoogleCode?
April 18 2009 at 2:13 AM Report abuse Permalink rate up rate down ReplyThanks, Mike. That works fine. It never occurred to me that I'd need to put TextEdit into a special mode to edit text files.
Is there some way to create a new .txt document directly from TextEdit? I keep using it to create new text files, forgetting that it only wants to save in .rtf, so then I end up having to rename the file to .txt and edit out the rtf cruft. It amazes me that the "save as" doesn't have a .txt format option.
April 17 2009 at 9:27 PM Report abuse Permalink rate up rate down ReplyBrouhaha said 9:28PM on 4-17-2009
"Is there some way to create a new .txt document directly from TextEdit? I keep using it to create new text files, forgetting that it only wants to save in .rtf, so then I end up having to rename the file to .txt and edit out the rtf cruft. It amazes me that the "save as" doesn't have a .txt format option."
-----------------
Wow, in the document just command-shift-"t" and you're in .txt format. (or you can go to the format menu in the menu bar and select the "Make Plain Text")
You can even shift between .txt mode and .rtf
1.) IF youâre on Mac OS X 10.5 you donât really need QS; just invoke Spotlight type tex⦠and (if you set in the System Prefs.>Spotlight to list Apps first) voila! TextEdit starts. Well ok, you can much more w/ QS -- but for me itâs to "overloaded".
2.) You donât "need" the Service Menu: just dragânâdrop marked text from eg. Safari to any text aware application -- eg. TextEdit, Mail, BBEdit 9.x, etc. besides TextMate which is not working that way -- and here you go again: new document (Mail: new e-mail) opens w/ the dropped text, incl. styles and links in case of TextEdit, and if you choose as dragânâdrop application Safari: youâll get a Google-Search w/ the choosen text. Also works if you dragânâdrop text to icon while doing cmd-tab to change/choose application.
TextEdit... Seriously?!
You've probably never used BBedit back when they used to have a "lite" version. If you can still locate it on the web, BBedit Lite 6.1 for Mac OS X is well worth the search effort.
It's sleek, powerful and fast and opens literally anything. (as much as a raw text editor should, anyway...) It even runs under 10.5.
Also, the editor features a slew of other features, such as GREP searching of a file.
Best of all... none of that Rich Text Format crap!
In fact, I did use BBEdit, but thanks for assuming I'm a Luddite.
April 23 2009 at 9:13 PM Report abuse Permalink rate up rate down ReplyHot Apps on TUAW
Deals of the Day
more deals- Refurbished Skullcandy Tokidoki Smokin' Buds Mic'd Headset for $5 + $2 s&h
- Stitchway Backup Battery for iPod / iPhone for $5 + free shipping
- Used Apple MacBook Pro 2.4GHz 15" LED Laptop for $1,030 + $29 s&h
- Refurb MacBook Air Core i5 Dual 1.6GHz 12" Laptop for $750 + free shipping
- Sony Dock 20W Speaker System for iPhone / iPod for $51 + $15 s&h
- Soulo Karaoke App and Wireless Mic for iPhone / iPad for $80 + free shipping
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



31 Comments