Leopard Mail’s clever HTML formatting

A 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:

Lastfmwebsite

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

Lastfmdraggedto Mailapp

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):

defaults write -g NSDragAndDropTextDelay -int 100

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:

Nsdragand Drop

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.mail.app, apple mail, productivity, safari, cocoa, text, html, rich text formatting, tips

Similar Posts:

Tags: , , , , , , , ,

3 Responses to “Leopard Mail’s clever HTML formatting”

  1. Irene Friedman says:

    In Tiger I had a script to have Mail recite the sender’s name on all incoming mail from people in the Address Book. The script doesn’t work in Leopard.

    Any solution?

  2. Andrew says:

    Thanks for this tip – that text drag delay is one thing that has always annoyed me. Especially with my day job requiring me to use a PC, I get used to drag and drop being instantaneous.

  3. Gianfranco says:

    Am on 10.5.1 and when a drag I get some minimal formatting retention but no links!

    What am I doing wrong?

    Am in rich text mode!
    am holding down forever but mouse cursor never changes!

Leave a Reply