<div class="markdown">
<p dir="auto">On 7 Dec 2013, at 13:55, Benny Kjær Nielsen wrote (with possible deletions):</p>
<blockquote>
<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">Ah. Thanks! Input type 'selection' works well as far as I can tell (build 3880).</p>
<blockquote>
<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>
</blockquote>
<p dir="auto">Playing with it now.</p>
<p dir="auto">Cheers,<br>
--Torsten</p>
<p dir="auto">-- <br>
| Torsten "Teggy" Grust<br>
| <a href="mailto:Torsten.Grust@gmail.com">Torsten.Grust@gmail.com</a></p>
</div>