Hi Scott,
maybe there is some way to do this with a text factory. BBEdit has the nice
#bbinclude function (check the manual for details).

So, in the first step, i would replace the search term with something like
this:
#bbinclude "/path/to/substitution/file.txt"

After that „Markup > Update > Document“ will replace that with the contents
of the file. Maybe you can even call that Update from the text factory
(with the Run Applescript modul) - but I would have to try that second part
myself.

Roland




On Thu, Aug 24, 2017 at 3:59 PM, Patrick Woolsey <[email protected]>
wrote:

> On 8/23/17 at 5:27 PM, [email protected] (Scott in Pollock) wrote:
>
> Can you point me to any resources to get me started on that script?
>>
>>
> I'll log a suggestion, and as to scripting, please see Chapter 13 of the
> manual (Help -> User Manual) or since search & replace is scriptable, you
> can just record a replace operation via the AppleScript Editor to use as a
> basis.
>
> (NB: Also, this group is an excellent place to ask questions about
> task-related matters, such as writing scripts. :-)
>
> Regards,
>
>  Patrick Woolsey
> ==
> Bare Bones Software, Inc.             <http://www.barebones.com/>
>
> --
> This is the BBEdit Talk public discussion group. If you have a feature
> request or would like to report a problem, please email
> "[email protected]" 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at 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
"[email protected]" 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to