app automatisch laten herstarten.

Zoek een mogelijkheid een app (easyproview sw voor een bewakingscamera) automatisch te laten herstarten na een crash bij mijn afwezigheid.

(App crasht 2 tot 3 x keer per 24 uur.) De iOS versie is vlekkeloos maar de macos versie is brak.

Dacht met Plisterine een launch agent te creëren maar door de sandbox beperking van macos wil dit niet automatisch starten.

Ben geen terminal tijger, een tip zou welkom zijn.

Misschien moet je dit eens doorlezen en zelf gaan experimenteren met “loop”, bijvoorbeeld elke minuut. Zo zit je dan maximaal 1 minuut zonder camerabeeld.

https://forum.keyboardmaestro.com/t/insuring-idiot-proofing-a-macro-by-using-if-application-is-running/1561/2

Met name dit stukje:

[quote]In your macro you can do more than just cancel if your app isn’t running — you can relaunch it if the task is not complete.

Loop Test for app-running — launch if NOT running. … Do stuff … App must be running for next step, so — Test for app-running — launch if NOT running. … Do stuff … End Loop
You can put as many tests in there as you need.

You can put a Pause Until app-is-running condition after the test to make sure the app finishes starting up (if it needs to), before the macro continues.

Take the time to experiment with it with some little app like Calculator.

If running then Display text — app is running… Else if NOT running then Display text — app is not running… Launching app… Launch app Pause until app is running Display text — app is running… End if
Until you test it for yourself you’re just depending upon someone else’s word that it works.

It does work, but that’s beside the point. :smiley:

-Chris[/quote]

Maar zo zijn er nog zát voorbeelden:
https://www.google.nl/?gws_rd=ssl#q=applescript+test+if+app+is+crashed

Bedankt night, ga er mee aan de slag. Laat nog ff weten of het zo is gelukt

Succes!