[TxMt] create email from document

Oliver Taylor oliver at ollieman.net
Mon Nov 6 20:34:45 UTC 2006


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 at foo.net,%20elizabeth at bar.com? 
cc=sam at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2421 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20061106/4771b35c/attachment.p7s>


More information about the textmate mailing list