[MlMt] determining whether Markdown is active
John Cooper
mailmate at coopercontent.com
Tue Nov 17 14:23:03 EST 2015
I see—I read carelessly. I think the "slow and clumsy" KM method you
described is the only KM-centric solution. I understand your question
now.
Shoshanna Green wrote (at 10:47 on 17 Nov 2015):
> No, the question isn't whether MailMate is running, or at the front,
> or anything like that; the question is whether Markdown is active in
> the message being composed. I'm talking about the popup menu in the
> bar below the headers in the Composer window, with options that are
> revealed when you choose Format -- Show Markup, and that are described
> in the manual at
> <http://manual.mailmate-app.com/preferences.html#markup_support>.
>
> On 17 Nov 2015, at 13:32, John Cooper wrote:
>
>> If I understand you correctly, Shoshanna, this is a KM question
>> rather than a MailMate question: you should be able to use an "If
>> Then Else" condition in your KM macro, and test for the condition
>> "MailMate is at the front" or "MailMate is running."
>>
>> Shoshanna Green wrote (at 10:07 on 17 Nov 2015):
>>
>>> Is there a way to programmatically determine whether Markdown is
>>> active in the current message draft?
>>>
>>> I'm trying to write a Keyboard Maestro macro that takes certain
>>> actions depending on whether or not Markdown is active, and the
>>> popup menu at the top of a message draft isn't recognized by KM as a
>>> menu, a button, or anything else. I have to have KM search the
>>> screen for the graphic image of the "Plain text" option and act
>>> according to whether it's found or not, which is slow and clumsy. Is
>>> there an environment variable, an Applescript or other script query,
>>> a menu item whose state is dependent on whether Markdown is active,
>>> anything I can use to make this determination more elegantly?
>>>
>>> Shoshanna Green
>>> shoshannag at gmail.com
>>> _______________________________________________
>>> 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
>
>
> Shoshanna Green
> shoshannag at gmail.com
> _______________________________________________
> mailmate mailing list
> mailmate at lists.freron.com
> http://lists.freron.com/listinfo/mailmate
More information about the mailmate
mailing list