Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'What worked for me' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
What worked for me
Authored by: foster on Apr 23, '01 10:46:05PM

It's easier to just make the script yourself.
>cd /usr/local/bin
>sudo -s (to become root, enter your password)
then you need to create a file, I prefer emacs
>emacs bbopen
this is a very simple script, just write two lines:

#!/bin/sh
open -a '"/Applications/BBEdit/BBEdit 6.1 for OS X"' $*
then
>chmod 755 /usr/local/bin/bbopen
then type C-x C-s to save and C-x C-c to quite emacs

Your final step is you must exit from being root and when you're yourself again, type
>rehash

I think this should you mortolan too- I'm pretty sure it's the same command to start a script under the BASH shell.

I don't know what was wrong with the echo syntax that was posted, but I'm new to this myself.



[ Reply to This | # ]
Almost ...
Authored by: Anonymous on Apr 24, '01 12:38:18AM

The "rehash" command didn't work for me.
Got: bash: rehash: command not found The script works, but I also get the following just before BBEdit launches:
kCGSErrorNoneAvailable : CGSReorderWindows: error retrieving current process

[ Reply to This | # ]