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.
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
http://www.obdev.at/resources/launchbar/help/index.php?chapter=WorkingWithCalendars
On 6 Dec 2013, at 2:16, Benny Kjær Nielsen wrote:
On 6 Dec 2013, at 9:01, Torsten Grust wrote:
I too use BusyCal and would love to create calendar entries from with
MailMate.
However, as fas as I can tell (I do hope somebody proves me wrong),
BusyCal
does not have an AppleScript dictionary, effectively rendering it
non-scriptable.
That's a siginifcant obstacle to a tight integration with MailMate
(with any
other application, for that matter).
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 `mailto:` URL scheme):
https://support.busymac.com/blog/23829-busycal-url-handler
This can actually be a good thing since it's probably faster than
using AppleScript when launching a command from within MailMate.
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.)
--
Benny
_______________________________________________
mailmate mailing list
[email protected]
http://lists.freron.com/listinfo/mailmate
_______________________________________________
mailmate mailing list
[email protected]
http://lists.freron.com/listinfo/mailmate