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


Click here to return to the 'Sorry for the mess' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Sorry for the mess
Authored by: liyanage on Apr 24, '01 03:50:27PM

I have no idea why this worked on my system, I tested it over and over before posting it. Now I just read the comments and tried it on a fresh OS X install and it doesn't work right.

Anyway, here are better instructions:

  1. In a terminal window, type sudo mkdir -p /usr/local/bin
  2. type sudo touch /usr/local/bin/bbopen
  3. type sudo chmod 755 /usr/local/bin/bbopen
  4. type rehash
  5. type sudo open -a TextEdit /usr/local/bin/bbopen

Note: Make sure TextEdit is not running before you type line 5, otherwise it will not run with the rights of the superuser. This seems to cause the kCGSErrorNoneAvailable error message.

TextEdit will open up with an empty window. If it's not empty because of previous attempts, clear anything in the window

Now copy these two lines into the empty document:

#!/bin/sh open -a "/Applications/BBEdit/BBEdit 6.1 for OS X" $*

Save the document and quit TextEdit

It should work now... Let me know if it doesn't.



[ Reply to This | # ]
Got it!
Authored by: Chas on Apr 24, '01 04:56:39PM

Thanks, the new version worked. The problem was the quotation marks, the original example had an extra set of single quotes. Once this was fixed, the script ran beautifully.



[ Reply to This | # ]