Remove ui stuff from OSX app scripts