5

For Thunderbird there is the External Editor extension a very very classical piece of software that, when called via a shortcut, pops up your external editor (emacs in my case) and let's you edit your mail there. While editing the compose window of Thunderbird is blocked. When the external editor closes, the compose window is populated with the updated text of the mail. Very convenient to have your mail as one buffer in your emacs, for instance to edit tables, copy computational results, use power editing features like regexp-search-and-replace, etc.

My question: Is it possible to implement the same thing using Mac OS Mail + AppleScript or other tricks?

  • 2
    Though it’s a more generalized solution, this answer to a similar Q certainly meets your criteria. Sidenote: it’s simple to config a .authinfo profile if you’re dedicated to using Emacs. – njboot May 19 '15 at 8:17
  • The question is really to have best of both worlds: Editing in emacs, but searching via spotlight, reasonable IMAP synchronization, etc. I've used mutt + offlineimap for quite a while, but I've become too old for this. – Thomas May 19 '15 at 8:32
  • I don't know about automating emacs, so I won't directly answer you. You should be able to use "Keyboard Maestro". Here is an example of working with another GUI editor: rocketink.net/2013/05/quickcursor-keyboard-maestro.html If you make this work with emacs, I would enjoy seeing your answer. – Lee Joramo May 19 '15 at 17:12
  • 2
    What about 'copy/paste' – CousinCocaine May 20 '15 at 21:00
  • This guy does it in BBEdit and posted his code: lists.apple.com/archives/applescript-users/2013/Apr/… – CousinCocaine May 20 '15 at 21:02

You must log in to answer this question.

Browse other questions tagged .