On 10/14/19 at 1:29 AM, [email protected] ('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.
<[email protected]> <http://www.barebones.com/>
Someday I'll look back on all this and laugh... until they
sedate me.
--
This is the BBEdit Talk public discussion group. If you have a
feature request or need technical support, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <https://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 view this discussion on the web visit
https://groups.google.com/d/msgid/bbedit/r480Ps-10146i-093FC9234C4A4AB390C1E1D5CD365370%40Stormwind.local.