I'm new with KM and would like some help with a macro, please.
I'm trying to create a keyboard shortcut which will allow me to switch between two email accounts within my client.
Manually I change them from a menu dropdown:
Setting something up to change over to one is easy enough using the 'Select or Show Menu Item' action, but how do I set something up which allows me to switch between the two regardless of which one is currently selected using the same hoy key?
I was hoping I was along the right lines using an if condition like below. However, even after playing around with all the settings, I still can't get it to work.
Here are my thoughts @tpa77l3, for what they’re worth.
The fact that when you’re in the pattle account the macro does what it’s supposed to means that the KM action to Select Menu works properly.
The fact is, when you’re in your other account the macro fails.
From this I can say that the KM test of the marked state of the menu is always returning false. This is just confirmed when you nested the If tests: the macro did nothing.
You need to look at an alternative way to phrase the Menu Condition. I’m not at my Mac, so I’m going to be of limited help but can you use a regular expression in the menu condition. For example,
Path that matches .*pandsmarine
(or similar!) would pick out your .co.uk account.
If I get a chance later I’ll look again when I’m at my Mac...
Many thanks for the suggestion. I've just tried it but the same thing is happening in that it will switch one way but not the other. I've tried swapping the email's around again to no avail...
Oops - I made a mistake in the regular expression:
Where I wrote *.pandsmarine in the screenshot (which is exactly what you used) it should have been
.*pandsmarine
which is what I wrote in the text of my posting.
Notice it should be .* and NOT *.
Sorry for that.
So, amend the "name matching" field to .*pandsmarine and make sure you switch the order of accounts back in the actions to be executed - first pattle.me and second pandsmarine.co.uk