#!/bin/csh -f # Open the specified files in the Emacs editor, and wait for it to close. # -n = New instance of the editor, even if another instance is already open. # -W = Wait till editor exits before proceeding. # :q = Quote each incoming arg in case it contains embedded spaces and such. open -n -W -a '/Applications/Aquamacs Emacs.app' $*:q