Is there some way to check if an app has opened successfully on the Mac?
This may sound like a silly question - if you open Pages, you know it's been successfully opened when you can see or edit your documents. But here's my situation:
I'm running an Automator script to try to open all the apps I need on a given workday at once. Not only open but - here's the kicker - I want them grouped on particular Spaces.
So I've got a kludge that's workable: I open up an app or two, switch Spaces, and then introduce an artificial delay in the execution of the Automator script for a set time, usually ~5 seconds.
However, depending on whatever other background processes are in play at the moment, this hard-coded time only successfully lands the apps in the appropriate Space about 70% of the time.
So back to the original question: is there a way of knowing when an app has successfully and completely opened? That way I could just check for that, and then move to the next Space and continue.
This may sound like a silly question - if you open Pages, you know it's been successfully opened when you can see or edit your documents. But here's my situation:
I'm running an Automator script to try to open all the apps I need on a given workday at once. Not only open but - here's the kicker - I want them grouped on particular Spaces.
So I've got a kludge that's workable: I open up an app or two, switch Spaces, and then introduce an artificial delay in the execution of the Automator script for a set time, usually ~5 seconds.
However, depending on whatever other background processes are in play at the moment, this hard-coded time only successfully lands the apps in the appropriate Space about 70% of the time.
So back to the original question: is there a way of knowing when an app has successfully and completely opened? That way I could just check for that, and then move to the next Space and continue.