problem with opening files in bbedit from the commandline

dkearford

Registered
Does anyone know why I can't open files in BBEdit from the Terminal if the application is already open.

For example: open -a filepath_to_bbedit /etc/httpd/httpd.conf, works fine when BBEdit is not running, however, if BBEdit is already open, it simply brings the application to the front without opening the file.

This is not the case with TextEdit, for example: open -a textedit /etc/httpd/httpd.conf, followed by open -a textedit a_different_file works as one would expect.

Any help would be greatly appreciated.



Powerbook G3 Wallstreet 266 with OS X 10.1.1 on a 6.5Gb partition,
 
I'm also using 6.5

My gripe is that it always opens an 'Untitled' window, as well as the document I've specified.

The command I'm using is:

open path_to_bbedit path_to_file &

anyone know anything to only make it open the document I specify?
 
Originally posted by testuser
Try changing the preferences in BBEdit; under Startup select Do Nothing.
But then when I launch BBedit normally - no window.
If I doubleclick on a BBEdit-associated document in the finder, it launches BBEdit with only that doc open. Why can't I do that from the Terminal?
 
That's the one!!
I knew it would be something simple, probably beginning with a '-' !!
 
Back
Top