I'm trying to find a way to ensure that the TeamViewer remote access program is always opening/running on my iMac. TeamViewer has to be open/running on a computer for me to be able to remotely access that particular machine. Several times over the last couple months I've accidentally quit TeamViewer, or the program unexpectedly quit, and I only first found out about this when I was away from my home computer trying to remotely access it.
Ideally, I'd like a macro that periodically checks to make sure the TeamViewer is running, and if it is not, then it should open the program and immediately minimize it to the dock so it doesn't get in the way of whatever I might be doing at the time.
The macro would need to allow enough time between its periodic checks to allow my computer to restart (I once tried setting up a macro like this that checked every 5 seconds whether TeamViewer was running, and I couldn't even restart my computer because KM kept relaunching TeamViewer over and over again before I could complete a restart cycle).
Also, if and when TeamViewer does relaunch via the macro, how can I have it promptly minimize to the dock so as not to get in my way (without needing to 'Pause' for a specific number of seconds before issuing the Cmd+H hide command)?
I know that there must be clean clean way of creating a macro like this, but I certainly can't figure out what that might be on my own ~here's a screenshot of my attempt at creating a macro to accomplish this task:
Pretty ugly I know!
I would sincerely appreciate any help anyone might be able to give me with creating a macro to more seamlessly accomplish the task at hand. Thanks so much!