I need to replace a number of contiguous lines in the file I'm editing that begin with a specific word ('mash' in the example) with the contents of the clipboard.

example file:

'some text'
...
'some text'
mash 432
mash 623
mash 543
.. many more lines beginning with 'mash'
mash 323
'some text'
...
'some text'

Aside from the contiguous block, there are no other lines in the file beginning with 'mash'.

I can stumble my way around AppleScript but I'm not quite sure where to start. Any help would be greatly appreciated.

-Steve

--
------------------------------------------------------------------------
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_script.shtml>
List archives: <http://www.listsearch.com/bbeditscripting.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to