I recently installed jEdit on my Mac OS 10.6 system. I would like to be able to run jEdit in the terminal as I would emacs, i.e. 'emacs FILE.NAME'. My plan was to write a script jedit.sh containing...
touch $1
open -a /Applications/jEdit.app $1
...where the argument is the filename. Strangely, jEdit is opened but only with the default new file, not the desired file. If I substitute the 'jEdit.app' with any other app, say 'TextEdit.app', it opens the desired file.
Is there something I'm missing? Why doesn't jEdit behave like other apps when used with the 'open' command and how can I work around this?