How to snap only a certain window?

What I want is to associate a shortcut, say, SHIFT+1, to

  1. Open a certain app if it is not already open. Or focus on its window if it is already open.
  2. Wait until the app opens/focuses.
  3. Then snap the window of the app to pre-determined snap area.

Is there a way to do this reliably?

Right now, my current solution is

  1. Show/Hide specific application
  2. Delay next action by 2.0s
  3. Trigger snap area

But it sometimes creates a mess, for example, if it takes more than 2s to open the app, or I trigger multiple such shortcuts. Moreover it is slow - regardless of whether the app is open or not, it waits 2s for every app.

I also tried "Custom move/resizes window" functionality but it doesn't recognise window by their title (active window or window under cursor options work).

instead of the delay you can try the „wait for focused window change“ action

that is definitely better - thanks!