On 10/14/19 at 1:29 AM,
bbe...@googlegroups.com ('Holger Bartel'
via BBEdit Talk) wrote:
>Have look into Text Factories which I believe should be able to
>accomplish what you are looking for.
This is true. However, in cases where scripting is necessary,
the following may be useful to know:
1. BBEdit and Tex-Edit have very similar support for the AppleScript
text suite. They will differ in the details of some application-
specific verbs ("replace" is a good example), but in
general you
should be able to get pretty far by looking up a verb in
the Script
Editor's (or Script Debugger's) dictionary browser for BBEdit.
2. When scripting BBEdit, it's very important to avoid targeting
"window" objects for text operations. Instead, target a
document or
its text, as appropriate: "document 1" or "text of document
1" give
you the active document or its text, respectively.
R.
--
Rich Siegel Bare Bones Software, Inc.
<
sie...@barebones.com> <
http://www.barebones.com/>
Someday I'll look back on all this and laugh... until they
sedate me.