<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal"><p dir="auto">Hi Benny, Andrew,</p>
<p dir="auto">thanks for your responses. I think I would like to give it a go. A have not to much experience with Applecript, but I have programming knowledge with some other languages, so I am quite sure I will be able to get what I want if you could point me in the right direction and give me a flying start with a example bundle (an aspect of mailmate I have mostly ignored until now)</p>
<p dir="auto">Thanks for your help!</p>
<p dir="auto">Martin</p>
<p dir="auto">--<br>
martin.guddat@googlemail.com</p>
<p dir="auto">On 10 Feb 2017, at 18:36, catesandrew@gmail.com wrote:</p>
</div>
<blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><div id="F0D89B8B-4736-4D2D-AED2-918E20659041">
<div style='font-family:"Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'><div style="color:#333; font-size:16px; line-height:1.6; white-space:normal"><p dir="auto" style="box-sizing:border-box; margin-bottom:16px; margin-left:0; margin-right:0; margin-top:0">On 10 Feb 2017, at 3:27, Benny Kjær Nielsen wrote:</p>
<p dir="auto" style="box-sizing:border-box; margin-bottom:16px; margin-left:0; margin-right:0; margin-top:0"></p></div>
<div style="color:#333; font-size:16px; line-height:1.6; white-space:normal"><blockquote style="border-left:4px solid #ddd; box-sizing:border-box; color:#777; margin:0; margin-bottom:16px; margin-left:0; margin-right:0; margin-top:0; padding:0 15px"><div dir="auto" style="box-sizing:border-box; margin-top:0">On 3 Feb 2017, at 19:32, Martin Guddat wrote:
</div><div dir="auto" style="box-sizing:border-box">
</div><blockquote style="border-left:4px solid #ddd; box-sizing:border-box; color:#777; margin:0; margin-bottom:16px; margin-left:0; margin-right:0; margin-top:0; padding:0 15px"><div dir="auto" style="box-sizing:border-box; margin-top:0">I am looking for a way to automate reponding to email without getting to generic, so I want to give a proper greeting as well as matching salutation. For this I would like to use something like templates. For a given response I would have to select from a set of options (salutation male/femame/unknown, formal or informal greeting etc) and fill the template with data I get from the mail.
</div><div dir="auto" style="box-sizing:border-box">
</div><div dir="auto" style="box-sizing:border-box; margin-bottom:0">I found some discussion on templates and mail merge as well as some notes from Benny on "Commands" 19 Jan 2014, at 16:22) but nothing conclusive. Is there more available on this topic or anyone minds to share his workflow on things like this?
</div></blockquote><div dir="auto" style="box-sizing:border-box">
</div><div dir="auto" style="box-sizing:border-box">It's actually a bit surprising how rarely I'm asked about some kind of template system, but it's certainly something I would like MailMate to be able to do.
</div><div dir="auto" style="box-sizing:border-box">
</div><div dir="auto" style="box-sizing:border-box">The only way to do it now is to use a custom bundle. This allows you to get any value from the replied email and use it in an automatically generated reply. (It's even possible to send the reply without editing the resulting message.)
</div><div dir="auto" style="box-sizing:border-box">
</div><div dir="auto" style="box-sizing:border-box; margin-bottom:0">In your particular case, you could use AppleScript to ask for the options, but it's going to require some scripting skills. I can create an example bundle to setup the general framework for you, but I cannot offer you to do the AppleScript part.
</div></blockquote></div>
<div style="color:#333; font-size:16px; line-height:1.6; white-space:normal">
<p dir="auto" style="box-sizing:border-box; margin-bottom:16px; margin-left:0; margin-right:0; margin-top:0">I use TextExpander for my templates. Works across multiple applications too. I’m migrating to Keyboard Maestro and ditching TextExpander at the moment and will be able to achieve the same thing there.</p>
<p dir="auto" style="box-sizing:border-box; margin-bottom:16px; margin-left:0; margin-right:0; margin-top:0">In reference to custom bundles, I too do this as well. I use node’s template system but you could use go’s or any others as well. I pipe it back to stdout to finish. Not sure of any way a bundle can ask for input from user which is why TextExpander is nice. It <em style="box-sizing:border-box">might</em> be possible to have the bundle’s invoke some sort of gui to ask for the input, but i’m not sure its possible.</p></div>
<p style="color:#333; font-size:16px; line-height:1.6">-- <br>Andrew Cates</p>
<div style="color:#333; font-size:16px; line-height:1.6; white-space:normal"><blockquote style="border-left:4px solid #ddd; box-sizing:border-box; color:#777; margin:0; margin-bottom:16px; margin-left:0; margin-right:0; margin-top:0; padding:0 15px"><p style="box-sizing:border-box; margin-bottom:16px; margin-left:0; margin-right:0; margin-top:0">There is always one thing to remember: writers are always selling somebody out.
-- Joan Didion, "Slouching Towards Bethlehem"</p></blockquote></div>
</div></div></blockquote>
<div style="white-space:normal"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px">
</blockquote><p dir="auto">_______________________________________________<br>
mailmate mailing list<br>
mailmate@lists.freron.com<br>
<a href="https://lists.freron.com/listinfo/mailmate" style="color:#3983C4">https://lists.freron.com/listinfo/mailmate</a></p>
</div>
</div>
</body>
</html>