It would be great if a new "Wait for app to open" action is added as currently i just use delays to do this. Sometimes its not reliable as the app occasionally opens too slow, and the keyboard shortcuts are inserted in to the wrong app instead.
The problem is that there are two things:
1.) When is an app completely launched according to macOS
2.) When is the app really able to accept input (internal app state)
The first one is easy to figure out, however the second one is not. That's why I'm not sure whether this would really be helpful, but I will do some experiments with, maybe I can find some sort of heuristic do determine whether an app is ready.
Unfortunately, that action will send the keyboard input to the wrong app if the desired app isn't open when the "Send to Specific App" action triggers. This can cause undesired effects.
UPDATE: I managed to solve the problem of waiting for the application to start by using the following (blocking) Apple Script:
tell application "appName" to activate
repeat until application "appName" is running
delay 0.1
end repeat
if application "appName" is running then
tell application "System Events" to tell process "appName"
repeat until (count of windows) is greater than 0
delay 0.1
end repeat
end tell
end if
NOTE: make sure you change "appName" to reflect the app you wish to activate!
Follow that with the "Send Shortcut to Specific App" option, and you should have a trigger that guarantees that the app is open before sending the shortcut!