Reize/move a window only once

Here's a macro that does much of what you want. Maybe it is enough to get you started:

Move and Set Window Size Per App & Win Name