launchd

Automate Viewer Stop and Start

dwskau's picture

I am in charge of an installation that runs Quartz Composer 24 hours a day and gets video input from AXIS cameras. Every so often the network connection fails causing the images to freeze on the last frame. The best way I have found to fix this is to stop and start the viewer again. Rather than doing this manually, is there a good way to automate this to happen every night at say, 3:00 AM? I know I can schedule things with launchd, but what method would be the best to actually do the starting and stopping? An applescript to click the menu item? Is there a better way?