On 8 mei 2008, at 07:40, Charlie Garrison wrote:

On 7/5/08 at 6:51 PM -0400, David Cortesi <[EMAIL PROTECTED]> wrote:

The following shell-script opens anything as root in BBEdit:

#/bin/sh
sudo open -a /Applications/BBEdit/BBEdit.app $@

I think you'll find that only works if BBEdit is not already running. And that will open the whole BBEdit app as root user which is not something I would recommend for newbie users.

So my advice would be don't use the above technique unless you fully understand the security implications.

In addition to this: you can use the bbedit command to open the file, and BBEdit will ask for your root password when saving the file. I think this is much more elegant, and safer as well.

Maarten

--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to