rewrite ns-frame.sh, make sure all executable file from Emacs.app