#!/bin/csh -f # Open standard input in the Emacs editor. # -n = New instance of the editor, even if another instance is already open. # -f = Read from standard input. # :q = Quote each incoming arg in case it contains embedded spaces and such. open -n -f -a '/Applications/Aquamacs Emacs.app' $*:q