[MlMt] determining whether Markdown is active
Shoshanna Green
shoshannag at gmail.com
Tue Nov 17 13:47:57 EST 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
More information about the mailmate
mailing list