A lame applescript to autorun applications and restart machines on app crash