<div class="markdown">
<p dir="auto">The approach taken by Apple Mail is when a date is identified, the event is created with the name of the event = to the email subject, and the url slot in an event is populated with a url to the mail file. I think it also takes the first sentence or something like that from the email and puts it into the notes section (could be wrong on that). Apple mail does some nice parsing of the date info, looking for time too and if no time is found, makes it an "all day" event. </p>

<p dir="auto">To start, it can take the selected email and allow a user to specify a standard parsing of text -> date/time [12/6/14, 10:15 becomes December 6, 2014 at 10:15 am for the default time of 30 min or so?]. If the user selects text, that can be assumed to be fed into a date/time parser? Is there some sort of standard syntax from text to event? Launchbar uses this <a href="http://www.obdev.at/resources/launchbar/help/index.php?chapter=WorkingWithCalendars">http://www.obdev.at/resources/launchbar/help/index.php?chapter=WorkingWithCalendars</a></p>

<p dir="auto">On 6 Dec 2013, at 2:16, Benny Kjær Nielsen wrote:</p>

<blockquote>
<p dir="auto">On 6 Dec 2013, at 9:01, Torsten Grust wrote:</p>

<blockquote>
<p dir="auto">I too use BusyCal and would love to create calendar entries from with MailMate.<br>
However, as fas as I can tell (I do hope somebody proves me wrong), BusyCal<br>
does not have an AppleScript dictionary, effectively rendering it non-scriptable.<br>
That's a siginifcant obstacle to a tight integration with MailMate (with any<br>
other application, for that matter).</p>
</blockquote>

<p dir="auto">Busycal has an alternative to using AppleScript based on a custom URL scheme (similar to what is often done on iOS and what MailMate does for the <code>mailto:</code> URL scheme): <a href="https://support.busymac.com/blog/23829-busycal-url-handler">https://support.busymac.com/blog/23829-busycal-url-handler</a></p>

<p dir="auto">This can actually be a good thing since it's probably faster than using AppleScript when launching a command from within MailMate.</p>

<p dir="auto">Now, I'm not sure exactly how you want this to work, but it's certainly possible to create a command which based on the currently selected message (or selected text in the message) can create an event in BusyCal/iCal/Fantastical (3 more bundles to be created). The main problem, of course, is to convert text to event data. I could perhaps implement a feature where MailMate can be told to analyze the message (or selected text) with the data detectors in Mac OS X (10.7+) before calling the external script. This could help find dates, addresses, and phone numbers I believe. (Making no promises, just thinking out loud.)</p>

<p dir="auto">-- <br>
Benny</p>

<hr>

<p dir="auto">mailmate mailing list<br>
<a href="mailto:mailmate@lists.freron.com">mailmate@lists.freron.com</a><br>
<a href="http://lists.freron.com/listinfo/mailmate">http://lists.freron.com/listinfo/mailmate</a></p>
</blockquote>

</div>