#!/bin/csh -f # Open the specified file in its default app, or the specified folder in Finder. # -n = New instance of the app, even if another instance is already open. # :q = Quote each incoming arg in case it contains embedded spaces and such. if ($#argv == 0) then open -n . else open -n $*:q endif