I often compose emails in TextMate and paste them into new messages in Mail. I think there should be a automated way of doing this.
What I've come up with so far involves transforming the document into a link and runing it with the "open" command. Something like this:
open "mailto:jo@foo.net,%20elizabeth@bar.com? cc=sam@fake.org&subject=New%20Fall%20Schedule&body=Hey%20guys%21%0A% 0AI%20just%20wanted%20to%20let%20you%20know%20that%20I%20was%20in% 20town%20next%20tuesday.%20Please%20call%20me%20at%20818-555-1234%20so %20we%20can%20set%20something%20up.%0A%0ASee%20you%20then%21%0A%0A-- oliver"
This works reasonably well.
Obviously, transforming the document into a single link would require:
1. A syntax 2. URL escaping 2. Some clever search/replace
But before I invest time into this I wanted to ask you guys what you thought.
Is this a good candidate for the existing mail bundle? Are there better ways of sending the message to mail than thru a link? What are your thoughts?
--oliver