Before I ask my question, I would like to briefly explain why. I would like to emphasize one reason in particular. I have found that I learn the most about KM when I replicate what I have already set up in BTT. I understand the most by direct comparison and I can remember it best. So, any help is greatly appreciated.
Here's what I'd like to accomplish:
If app A is the front app
and if this character is included in the (front) window name
and if the cursor is in the “AXTextArea” field
Is this something you absolutely need running automatically 100% of the time? Because that's what it'll do—just sit there looking at every window title of every DEVONthink window all of the time, and (probably) rarely actually doing anything other than sucking up CPU cycles.
Or can it be a macro you trigger when you need it? Then it would run on demand, only when you needed it.
To help answer that question, can you describe what you're trying to do with DEVONthink?
Hi Rob, No, it's not something I absolutely need. That's why I don't want to waste too much of other people's time. It's something I made for someone else with BTT and am trying to recreate with KM to learn from it.
You mean it takes too much CPU? I tested the macro above and kept triggering it ... it doesn't seem to me that it's overloading my mac.
I didn't mean need as in "need to have," but as in "need to have running all the time." That is, I'm trying to understand the use case where you need this macro constantly active in the background, as opposed to on demand.
Hence the higher-level question of "what are you trying to do in DEVONthink?"
FYI, this is not a simple task in KM. Unless I've missed something, it will require AppleScript or JXA, and some sleuthing with UI Browser unless DEVONThink can show you a direct path to the element.