Re: Relaunch App (Quit, Relaunch If Quit)?

2009-01-14 Thread Chunk 1978
thanks! your way seems much easier :) On Wed, Jan 14, 2009 at 10:36 AM, Jean-Daniel Dupas wrote: > The proper way to do it is probably to listen for Finder death using a > timeout, not polling the process list. > > You can either use the NSWorkspaceDidTerminateApplicationNotification or use > th

Re: Relaunch App (Quit, Relaunch If Quit)?

2009-01-14 Thread Jean-Daniel Dupas
The proper way to do it is probably to listen for Finder death using a timeout, not polling the process list. You can either use the NSWorkspaceDidTerminateApplicationNotification or use the low level kqueue function which provide such facility. Le 14 janv. 09 à 16:25, Chunk 1978 a écrit :

Relaunch App (Quit, Relaunch If Quit)?

2009-01-14 Thread Chunk 1978
my goal is to quit an app, check to see if it has quit, and then relaunch the app if it has quit successfully. i'm sending quit/relaunch commands with applescripts (tell application "Finder" | quit | end tell, tell application "Finder | launch | end tell), and i'm attempting to make this code work