Your suggestion didn't replace the selected text, but a replace command did the trick since the lines in question are always the same text.

How do I set the insertion point cursor at the beginning of line X?

Thanks!

Steve

On May 22, 2007, at 7:27 AM, Kjetil Rå Hauge wrote:

Mark Stevens (Steve) Willis wrote:
Hi, all!
Am new to the list and making my first foray into AppleScripting BBEdit. Successfully recorded a series of Replace tasks. Now need to do something along the lines of:
    move insertion point to beginning of line 4
    select the 4 lines after the current location
    delete selected text
    insert text "blah, blah, blah"


You mean in sequence? Try this:

set selection to lines 4 thru 7 of front document
set selection to "blah blah"


--
---
Kjetil Rå Hauge, U. of Oslo, PO Box 1003 Blindern, N-0315 Oslo, Norway
Tel. +47/22856710, fax +47/22854140

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




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

  • [no subject] Mark Stevens (Steve) Willis
    • Re: Kjetil Rå Hauge
      • Re: Steve WIllis

Reply via email to