Hi Chris

I had a feeling you'd know the answer to this one… because you had already
written it :-)

Unfortunately I'm getting an error that I don't understand at all. I pasted
the full message here

https://images.luo.ma/temp/script-debugger-2021-05-31-09.21.15.png

FWIW, I don't use the sidebar. All of my BBEdit windows are one-document
each (unless I'm doing a mass-search-and-replace, and then I close that
windo as soon as I'm done).

I also use 'Inconsolata-g' 16 as my font size (used to be 13, but not long
after I got a 4K monitor I finally got tired of always having to increase
the zoom level on all my BBEdit windows so I finally caved and increased
the default font size :-)

~ Tj





On Mon, May 31, 2021 at 4:35 AM Christopher Stone <[email protected]>
wrote:

> On 05/30/2021, at 17:14, TJ Luoma <[email protected]> wrote:
>
> Hi all, my name is TJ and I don't understand AppleScript, hence I
> come, again, asking for help from those who do.
>
> I like to set "Soft Word Wrap" to "Window Width".
>
> But then I often find that I want to adjust the width of the window so
> that it is _just_ wide enough to not need a horizontal scroll bar.
>
> Tonight it occurred to me that this would be a good place for automation,
> but I can't figure out if that's possible, and Google is no help because it
> just tells me how to change word wrap or other word-wrap related things
> that are not the thing I'm looking for.
>
> ------------------------------
>
> Hey TJ,
>
> There's *probably* only one place on the whole Internet to find that.
>
>
> https://forum.latenightsw.com/t/resize-width-of-front-bbedit-window-according-to-longest-line-and-then-center/1531
>
> The original script works for me on macOS 10.12.6 Sierra, but there's a
> change to AppleScript in High Sierra that has to be adjusted for.
>
> Rich kindly added *sidebar width* to BBEdit's AppleScript lexicon after I
> wrote this, but I have not (as yet) changed the script to adapt to its
> open/closed state.
>
> Presently the script expects the sidebar to be closed when run.
>
> If you can't follow the thread and get it running on your system let me
> know.  I can reproduce the issue on my MacBook Air (Mojave), so I should be
> able to fix it without too much trouble.
>
> If I have time I might look at it late Monday.
>
>
> --
> Take Care,
> Chris
>
> --
> 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 here. 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/11C1632C-D694-402A-9E53-8E44B07923A3%40gmail.com
> <https://groups.google.com/d/msgid/bbedit/11C1632C-D694-402A-9E53-8E44B07923A3%40gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 here. 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/CADjGqHvTDpm3JoNTsTaxAqfEctk%3DcSNzpDmyKsUpps8ZJB2ofw%40mail.gmail.com.

Reply via email to