T talguy macrumors member Original poster Sep 17, 2009 #1 I was wondering how I could write an applescript that would quit x11 when matlab quits.