Actually, re-reading your post, I think the clipping you are looking for is 
this:

echo "#SELECT#" >> $target

[fletcher]


> On Apr 6, 2017, at 3:52 PM, Fletcher Sandbeck <fletc...@cumuli.com> wrote:
> 
> This sounds like a job for Clippings which you can find in the Clippings "C" 
> menu or in Windows > Palettes.
> 
> You can define a clipping by creating a pattern with #SELECT# in place of 
> where you want the current selection to go. If I understand what you're 
> looking for your clipping would like this. Select this text and choose "Save 
> Selection as Clipping" and give it a name.
> 
> echo "
> " >> #SELECT#
> 
> Now, select some text and apply the clipping by double clicking its name in 
> the palette or selecting it from the menu. You can give it a keyboard 
> shortcut if you use it a lot.
> 
> There's a whole list of placeholders you can in place of #SELECT# in the 
> manual.
> 
> [fletcher]
> 
>> On Apr 6, 2017, at 2:04 PM, BeeRich33 <beer...@gmail.com 
>> <mailto:beer...@gmail.com>> wrote:
>> 
>> Hi folks.
>> 
>> I'm still confused amongst text factories, scripts, etc.  I want to select 
>> some text in a file, and prepend and append the following:
>> 
>> echo "
>> " >> $target
>> 
>> Not the whole file.  Not a whole folder.  Not a whole predefined set of 
>> files.  Not a project.  Just selected lines.  
>> 
>> Can this be done and how do I do it?
>> 
>> Cheers
>> 
>> -- 
>> This is the BBEdit Talk public discussion group. If you have a 
>> feature request or would like to report a problem, please email
>> "supp...@barebones.com <mailto:supp...@barebones.com>" rather than posting 
>> to the group.
>> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit 
>> <http://www.twitter.com/bbedit>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "BBEdit Talk" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to bbedit+unsubscr...@googlegroups.com 
>> <mailto:bbedit+unsubscr...@googlegroups.com>.
>> To post to this group, send email to bbedit@googlegroups.com 
>> <mailto:bbedit@googlegroups.com>.
>> Visit this group at https://groups.google.com/group/bbedit 
>> <https://groups.google.com/group/bbedit>.
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or would like to report a problem, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit 
> <http://www.twitter.com/bbedit>>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com 
> <mailto:bbedit+unsubscr...@googlegroups.com>.
> To post to this group, send email to bbedit@googlegroups.com 
> <mailto:bbedit@googlegroups.com>.
> Visit this group at https://groups.google.com/group/bbedit 
> <https://groups.google.com/group/bbedit>.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to