At 17:12 +1000 5/6/08, David Nicholls wrote:
>I want to edit some application template files that are embedded down two 
>"package" levels - the packages and the files in question are owned by root.  
>And I want to be able to write safe copies of the originals to the same folder.
>
>Is there a simple way to do this in BBEdit?  ie a "sudo" equivalent?

I had the same kind of problem yesterday with gedit.  The solution was to 
create the backup file with Terminal and then go into the editor with a command 
line.

cd /etc
sudo touch hosts~
sudo gedit hosts

I suspect that the bbedit tool would do something similar

cd your_package_directory
sudo touch the bbedit backup_file_you_expect
sudo bbedit  yourpackagedirectory/the_file_to_be_edited

In any case getting into files and directories that Finder really doesn't want 
to show is pretty much always easier with the bbedit tool than with the Open or 
Save-As menu items.

You can also use the chmod tool with sudo to open up permissions on the files 
and directories that bother you. it won't affect the way they work unless some 
program - ssh - demands that they be closed off for security reasons.

man chmod  # for more


-- 
-->  The best programming tool is a soldering iron <--

-- 
------------------------------------------------------------------
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