I have a set of scripts that I use to modify my apache config file
(comments & uncomments lines for various includes as well as other
stuff, like default web site).
Is there a way I can "pre-authenticate" so BBEdit won't ask me if I
want to edit a file owned by root?
Here's the beginning bits of the script:
tell application "BBEdit"
set searchOptions to {search mode:grep, starting at top:true, wrap
around:false, backwards:false, case sensitive:false, match
words:false, extend selection:false}
open {file "quickness:opt:local:apache2:conf:httpd.conf"}
replace "^Include /Library/WebServer/mosasaur\\.conf\\r" using "#
Include /Library/WebServer/mosasaur\\.conf\\r" searching in text 1 of
text window 1 options searchOptions
replace "^# *Include /Library/WebServer/harvestclassic\\.conf\\r"
using "Include /Library/WebServer/harvestclassic.conf\\r" searching in
text 1 of text window 1 options searchOptions
--
Lorin Rivers
Mosasaur: Killer Technical Marketing <http://www.mosasaur.com>
<mailto:[EMAIL PROTECTED]>
512/203.3198 (m)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "BBEdit Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a specific feature request or would like to report a suspected (or
confirmed) problem with the software, please email to "[EMAIL PROTECTED]"
rather than posting to the group.
-~----------~----~----~----~------~----~------~--~---