[MlMt] Any doc on writing bundles please?
Rob Willett (Mail Mate)
rob.mailmate at robertwillett.com
Sun Oct 18 09:15:20 EDT 2015
Kee, Benny,
We’ve worked out how to do (I think). We’ve been playing about with pbcopy, pbpaste and Perl and have done a simple test to take stuff out of the clipboard, modify it and put it back onto the clipboard. We also have Keyboard Maestro so we can automate this and put it on a key.
We’ll hopefully sort this out in the next day or so. I’ll post the Perl here so somebody else can use it. It won’t be very complicated :)
Rob
> On 18 Oct 2015, at 14:05, Kee Hinckley <kee+freron at hinckley.com> wrote:
>
> I have some tabular to markdown cut/paste utilities (I use them with a macro package, but they could also be bundled into services using automator). They're a bit rough, but they work. I'm traveling this week, but drop me email and I'll send you what I have.
>
> Sent from my iPad
>
>> On Oct 18, 2015, at 1:45 PM, Rob Willett (Mail Mate) <rob.mailmate at robertwillett.com> wrote:
>>
>> Benny,
>>
>> Thanks for the reply.
>>
>> I agree we could do something that manipulates the clipboard, I hadn’t thought of that as an option, if I can work out how to do that and attach it to a keypress, that would do me. The actual conversion from Excel format to markdown is the ‘easy’ bit for me, the difficult bit is the manipulation of the clipboard OR a bundle in MailMate OR a pipe process OR whatever mad scheme I can think of :)
>>
>> I understand the styling is local only and the recipient e-mail could screw things up, but I can only do what I can do.
>>
>> Oddly enough the only styling I’m concerned about is tables, I could live with Fixed Width Courier for an awful long time :)
>>
>> Thanks for taking the time to reply, I’ll go and look at manipulating the clipboard.
>>
>> Rob.
>>
>>> On 18 Oct 2015, at 09:53, Benny Kjær Nielsen <mailinglist at freron.com> wrote:
>>>
>>> On 17 Oct 2015, at 12:33, Rob Willett (Mail Mate) wrote:
>>>
>>> With respect to the subject line: No, there are still no docs on writing bundles.
>>>
>>>> What I want to do is have an easy way to cut and paste tabular data from an Excel cut and paste. I am very, very happy to write something in Perl, C or shell that takes the output out of MailMate, format the table for markdown and feed it back into MailMate. The processing into Markdown from a CSV or cit/pasreis the easy bit, I’m trying to see if theres anyway to do this as a bundle, a pipe command or whatever so that its easy from MailMate.
>>>
>>> It sounds like MailMate doesn't necessarily have to be involved. You kind of “just” need a utility which can alter the current content of the pasteboard. Replacing the Excel content with a plain text Markdown table.
>>>
>>> MailMate does not have a “hook” available for altering what is pasted in the Composer, but that is something which could be helpful for various purposes. Hopefully I'll look into that at some point (also for dragging things to the Composer).
>>>
>>> Note that there is a caveat with Markdown tables in MailMate. The styling you see is actually local only. The message sent does not include any explicit styling and it's at the mercy of whatever the recipient email client use as defaults for HTML tables. Hopefully this won't be an issue for long since styling of outgoing messages is a high priority item (and 90% implemented).
>>>
>>> --
>>> Benny
>>> _______________________________________________
>>> mailmate mailing list
>>> mailmate at lists.freron.com
>>> http://lists.freron.com/listinfo/mailmate
>>
>> _______________________________________________
>> mailmate mailing list
>> mailmate at lists.freron.com
>> http://lists.freron.com/listinfo/mailmate
> _______________________________________________
> mailmate mailing list
> mailmate at lists.freron.com
> http://lists.freron.com/listinfo/mailmate
More information about the mailmate
mailing list