Hello, all, and thanks for this wonderful forum (and Keyboard Maestro).
So I've got a script that needs to try to select a menu then store the result of that action, then try it again and store that result. (Basically, I need to verify that a certain Twitter account is loaded before a script proceeds, and there's no good way to do it progmatically as there is no scripting dictionary). I could attempt it then set "failure aborts macro" as a way of trapping the error I need, but that seems very messy. Can anyone suggest anything else? If the menu select command works, I want to store some variable, but if it fails I want to trap that error and show a message that I need to fix my Twitter accounts before running the script.
(In Filemaker, you can turn error trapping on, do a command and if there's an error, get(last error message) to see what the result was, I am hoping there's something like this I can call on)