Is there easy way to ensure that some gui application is running (restart if it crashes)?
|
Check out the script in msg 20 in this thread and modify it to the application you are interested in keeping alive. It will help you create a Launch Agent to check and open when necessary. This alleviates the need for an Applescript application running. |
|||
|
|
|
Yes, you can do what you need with AppleScript. First, Open AppleScript Editor ( Then insert this code into the editor:
Replace Hope this helps! |
|||
|
|
|
Applescript might be the way to go with this one. This webpage outlines how to see if an application is running and this webpage outlines how to run an application and also how to perform an action based on criteria. Basically you would script it so that you loop a check to see if the app is running. If at any time it is not running, you start it. I'd draft out something for you but at this time I don't have a working Mac to test with. |
|||
|
|