Someone
public shellscript v1 · immutable#!/bin/shec="/Applications/Emacs.app/Contents/MacOS/bin/emacsclient"open -a Emacsrun_emacs () {if [ "$0" == "/usr/local/bin/emacswait" ]; then $ec $* 2>/dev/null if [ "$?" != "0" ]; then sleep 0.1 run_emacs $* fielse $ec --no-wait $* 2>/dev/null if [ "$?" != "0" ]; then sleep 0.1 run_emacs $* fifi}if [ "$*" != "" ]; then run_emacs $*fi