I have previously set up a nice macro that I use to start things up. Basically, it opens a number of applications and sets their window position on either my main or secondary screen. In addition, some app windows will open on another Space.
For the most part things are working very well. My issue is properly timing the various macro steps so that everything opens correctly. Sometimes things randomly get messed up and apps open in the wrong Space or the macro gets stuck in the middle and does not complete. Mostly I am using "pause until all conditions are met" however sometimes this does not work as expected. So additionally I have added pause for XX seconds when needed.
I imagine if I set up the "pause until all conditions met" better - then I wouldn't need to pause for xx seconds.
The basic macro - repeat for all apps
1 - activate application
2 - move and resize Front window
3 - pause until conditions are met
usually just = the front window of "APP" exists
This application XXX is at the front
I am a bit confused how to get all this working properly since some applications do have a front window and some do not (just open dialogue). Also, sometimes things get slowed down because an external spinning Drive needs to spin up which might throw off the timing somewhat.
To jump to the various spaces prior to opening apps for that space I use = type the xxx keystroke. Do I need to pause to wait for the space to show up?
Q: Is there a best practice to setup pauses so that this macro will always work as expected?
I would appreciate any help to show me the best way to get these applications to open and properly pause for the window to be set up for all the various applications and spaces.