You can use AppleScript, maybe in Version 8 (I don't know), certainly
in 9.   I opened Script Editor, and recorded a search, then just
modified it for the subsequent searches. Be aware that Google's Mailer
will break the search lines. Everything from "replace..." to "--End"
is on one line.

---------
tell application "BBEdit"
        activate
-- This search was recorded

replace "alpha" using "beta" searching in text 1 of text document
"pi50.txt" options {search mode:grep, starting at top:true, wrap
around:false, backwards:false, case sensitive:false, match
words:false, extend selection:false}  -- End
.
-- Next search was just a copy & paste of the previous one
replace "beta" using "gamma" searching in text 1 of text document
"pi50.txt" options {search mode:grep, starting at top:true, wrap
around:false, backwards:false, case sensitive:false, match
words:false, extend selection:false} --End

end tell
----------------


On Jul 27, 1:03 pm, jgold723 <[email protected]> wrote:
> I'm using BBEdit 8 (but willing to upgrade if necessary). I have a
> series of search and replace strings that I need to perform on a
> document. I'd like to build these once, then have BBEdit run them all
> on the document. Can that be done? How?
>
> Thanks,
>
> John

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
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 feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to