Re: adding a paragraph - part 2
Re: adding a paragraph - part 2
- Subject: Re: adding a paragraph - part 2
- From: Shane Stanley <email@hidden>
- Date: Thu, 21 Jun 2001 12:09:23 +1000
On 21/6/01 8:33 AM +1000, email@hidden, email@hidden, wrote:
>
Thanks, this code worked. What I do not understand is, why. If I run it
>
without the tell and end tell, it errors out on the "before". Why is the
>
tell needed?
Which tell did you remove? The one targeting window 1?
You can't just target the application: you have to target a document (or in
BBEdit's case, a window) -- it has to know which document you want the text
copied to.
One way to target a command at a document is via a "tell window 1/end tell"
construct, and an alternative is to include it in the command (the
"searching in text 1 of text window 1" bit in your replace commands).
--
Shane Stanley, email@hidden