Suppose you want to open an application, wait until it opens, and then somehow interact with it once it opens. This sounds simple, right?
As simple as it sounds, this gets more complicated when:
The app opens somewhat slowly, i.e., requires more than a few seconds.
You don't know the name of the app until the macro run-time.
The app is already running in another Desktop Space.
The app is the Finder.
The app is non-standard, e.g., Obsidian, and does not include an About menu item—which is commonly used to check that an app is ready.
The actions in this macro account for these circumstances. If you sometimes have timing issues when attempting to interact with an application, you might find this macro helpful.
DOWNLOAD Macro File:
Activate an App and Wait Until It Is Ready.kmmacros (60 KB)
Note: This macro was uploaded in a DISABLED state. It must be ENABLED before it can be run. If it does not trigger, the macro group might also need to be ENABLED.
If you find an macOS application that does not work with this macro logic, please enable the debug actions and post the generated screenshot here. For example, if Obsidian was not included in local_Missing About Menu Item, the following would appear: