Iām trying to get Microsoft Outlook 365 on my Mac to use Command-L to mark a message both as Unread and as Read. Problem is, you canāt use the Keyboard Shortcuts menu as you can for most other apps on the market to accomplish this. So I turned to Keyboard Maestro.
Problem here is: I give KM two macros, one for unread and one for read, and it freaks out. So now Iām trying to have just one macro that executes when I press Command-L and if one string fails, the other will execute (i.e. if the message is āreadā and I want it to mark as āunread,ā Maestro will first try and fail to execute āMark as Read,ā and will then revert to āMark as Unread.ā) Iāve fiddled with the If/Then Else macro, but Iām failing. Any insight?
Thanks!
p.s. I did review the thread called āOn Step Failure Jump to Stepā but I found it remarkably confusing.
You can use the KM ActionResult Token to determine if an Action failed. If it is NOT "OK", then it failed.
1 Like
JMichael!
Thanks so much for the quick reply - I tried fiddling with the āActionResult Token,ā but I canāt figure out how to integrate it into the āIf/Then Elseā in such a way to help me.
Fortunately, I resolved the issue with a weird/unexpected work around.
I created a āMark as Unreadā Macro and have it set to select the menu item āMark as Read,ā with an āIf/Then Elseā condition that refers to itself: if the āMark as Unreadā macro is inactive, then execute nothing, but if otherwise, execute the following actions: "select menu item āMark as Unread.ā
Not really sure why it works, but it does.
To get better help, please post your macro.
See
That's a "good news/bad news" story.
It may work for now, but you don't know if it will have unintended consequences. Best to find a solution that you do understand.
The Select or Show a Menu Item action accepts alternatives directly in the action, ie:
Mark as Unread|Mark as Read
1 Like
Peter!
This is AWESOME! It very clearly solves the problem. And I definitely would have never thought of that on my own.
JMichael - I agree. I will need to figure this out. But with Peterās solution, Iāll wait for another fire before investing the time.
You guys are great!