On 15 Sep 2016, at 16:47, Brian Christmas < email@hidden> wrote:
I’m using a ‘kill’ shell script to quit, but you’ve overlooked the caveat, ‘and restart it in one line’.
As far as I know, the only way to do it is the way we discussed earlier. Whether you issue the quit and launch commands through AppleScript, the shell or via Cocoa APIs isn’t really relevant. If you’re having trouble with ‘Quit’ then do a kill or [NSApp terminate].
If you are having trouble with launch or activate, look at man open, or better yet use the Cocoa API
[[NSWorkSpace sharedWorkspace] launchApplication:@“<path to your app>”];
But honestly, I think this is all moot. Given the complexity of the solution you’ve implemented, I’d be very surprised if the underlying problem was NOT memory leaks. Fix the cause, not the symptoms.
Best
Phil
|