Bull, AS - good idea. Thanks for this. It's new to me. More homework. Thanks for the help.
Ptarmigan On Jan 10, 4:36 pm, Bull <[email protected]> wrote: > Will an AppleScript do it? I recently had a similar problem and came > up with: > > repeat n times > tell application "BBEdit" > activate > find "your grep search pattern" searching in text 1 of text document 1 > options {search mode:grep, starting at top:true, wrap around:false, > backwards:false, case sensitive:false, match words:false, extend > selection:false} with selecting match > cut selection > make new text document at text window 1 > paste > end tell > end repeat > > document 1 was the front window. I had 800 things to extract so I set > n to 800, and wound up with 800 open files. > The problem I had then was to automate the saving of the resulting > file with a unique filename. > > Bull > Blacksburg VA > > On Jan 10, 9:27 am, Ptarmigan <[email protected]> wrote: > > > I have inserted the word CODE at intervals in a file > > > I have grepped the file using : CODE(?s).*?(?=CODE) > > > This grep selects chunks of the file as required. Great. > > > However, I am not sure how to get each chunk into a separate .txt file > > via BBEdit's text processing tools. I don't wanna do this manually. > > > Suggestions ? > > > Ptarmigan
-- 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.
