can someone give me a quick OS X script I can use to check process 'x' every 30 seconds and if the process is dead restart it in the same way one starts an application by double clicking on it in finder? for example, if Textedit has quit restart test.txt.
