newbie question, but could not find any answers. what is the easiest way to automate successive searches to multiple open documents?

so lets say i have five search and replace patterns. i would now do this five times with the search and replace window, but surely there must be a way to automate this. the search and replace patterns are always the same but the files change every time. i tried to record the action with apple script, but it recorded all the filenames also, which is no good as every time i want to repeat this action the collection of files differ.

basically i want a script that can do something like this:

search all "aaaaa" and replace all with "bbbbb" in all open documents;
search all "ccccccc" and replace all with "ddddddd" in all open documents;
search all "eeeee" and replace all with "fffffff" in all open documents;
search all "gggggg" and replace all with "hhhhhh" in all open documents;
search all "iiiiiiiiii" and replace all with "jjjjjjjjjjjjj" in all open documents;


any help appreciated.

kind regards,
/sami kallinen

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