Leopard Mail’s clever HTML formatting
Wednesday, November 21st, 2007A poster on macOSXHints points out
how much smarter Leopard Mail is at handling content from the web which is pasted into its messages from web browsers.
For example, say you want to share someone’s overall top artists from Last.fm:

Block the content you want to send, and then drag it to a message in Mail.app, and behold:

Mail does a pretty good job of preserving the HTML formatting, even keeping the links and tool tips alive. It even provides a “widget-like” black boundary and cross for quick removal of the HTML block if you change your mind about sending it.
There are two things to note here. First, this works much better if the message is set to Rich Text Format. I live in a Plain Text world, so didn’t notice this at first. But perhaps only fuddy-duddies like me think it is more polite to send a link to the page.
Secondly, it works even better if you apply the “quicker text dragging” hack. Of course, this speeds life up all across Mac OS X, but also in this case.
Cocoa-based apps (Mail.app, Safari, etc) require by default that you hold your mouse down over the selected text for a second before dragging.
You can reduce the built-in delay with a simple Terminal hack. Open Terminal and type (exactly):
This will reduce the delay to a tenth of a second in all your Cocoa-based apps (‘-g’ stands for ‘global’).
It modifies a string in the .GlobalPreferences.plist file in your ~/Library/Preferences folder:

You could edit it manually in Plist Editor, as seen here, if you have an aversion to the Terminal, although you will need to use an app like Leopard Cache Cleaner
to reveal Leopard’s “hidden files” first.
You will, of course, need to restart the apps for the change to take effect.
Tags: Apple Mail, Apple Mail Tips, cocoa, HTML, mail.app, Productivity, rich text formatting, Safari, text

The text editor 

