On 05/30/2021, at 17:14, TJ Luoma <[email protected] <mailto:[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 <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.
