<div class="markdown">
<p dir="auto">On 6 Dec 2013, at 22:35, Torsten Grust wrote:</p>
<blockquote>
<blockquote>
<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).</p>
</blockquote>
<p dir="auto">How would a command receive the currently <em>selected</em> text (as opposed to the entire<br>
message text)?</p>
</blockquote>
<p dir="auto">The latest test versions actually provide selected text instead of the canonical text when <code>canonical</code> is the input type and something is selected, but I'm probably not going to continue to do that (don't rely on it). I've also added a <code>selection</code> input type and I think I'm going to keep that and then make this, optionally, fall back to the whole text if there is no selection (like TextMate).</p>
<blockquote>
<p dir="auto">In the current commands, a mechanism like</p>
<pre><code>environment = 'MM_FROM=${from} ...'
</code></pre>
<p dir="auto">makes the <code>From:</code> address available in the environment. Would the selected text<br>
be communicated in a similar fashion?</p>
</blockquote>
<p dir="auto">This would be inefficient for large selections.</p>
<blockquote>
<p dir="auto">Well, BusyCal as well as Fantastical come with quite sophisticated date parsers<br>
that are exposed via the URL scheme and AppleScript, respectively. It could be an<br>
option to simply rely on these (for now).</p>
</blockquote>
<p dir="auto">I actually didn't ready the details of the BusyCal URL scheme. This could perhaps work well.</p>
<p dir="auto">-- <br>
Benny</p>
</div>