Maarten Sneep 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.
Thanks for all the comments. I'm old and wise enough not to do anything
stupid with powerful commands (Unix in the hands of a dummy is like the
wizard's wand in the hands of Micky Mouse in the Sorcerer's Apprentice),
but it's good to know what's possible.
DN
--
------------------------------------------------------------------
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]>