tdcwilliams
Registered
Hi,
I'm running Mac OS X v 10.5.8.
I would like to be able to write a bash function to do this from a terminal:
open -a /Applications/Adobe\ Reader\ 9/Adobe\ Reader.app "sem.pdf"
(this works fine but is very long).
I tried writing a bash function:
function acroread{
open -a /Applications/Adobe\ Reader\ 9/Adobe\ Reader.app "$1"
}
so that I'd just have to type 'acroread sem.pdf' in future.
However I just got this error:
-bash: syntax error near unexpected token `{open'
If anyone knows what I'm doing wrong here how I'd be greatly appreciative, thanks.
I'm running Mac OS X v 10.5.8.
I would like to be able to write a bash function to do this from a terminal:
open -a /Applications/Adobe\ Reader\ 9/Adobe\ Reader.app "sem.pdf"
(this works fine but is very long).
I tried writing a bash function:
function acroread{
open -a /Applications/Adobe\ Reader\ 9/Adobe\ Reader.app "$1"
}
so that I'd just have to type 'acroread sem.pdf' in future.
However I just got this error:
-bash: syntax error near unexpected token `{open'
If anyone knows what I'm doing wrong here how I'd be greatly appreciative, thanks.