Hi Rob,
> On 13 Apr 2021, at 20:16, Rob Russell <
sum...@gmail.com> wrote:
>
> Thanks for that. I think the syntax is suitable for Mavericks. I certainly couldn't get that going, even after opening up security permissions. It seems that system events should be able to set the state of the zoomed property of the given window, though the syntax is opaque to me.
>
> r
Sorry for that, I should have tried it myself.
This one seems to work for me with BBEdit and Mojave:
#----------------------------------------------
tell application "System Events" to tell (process 1 where frontmost is true)
click button 2 of window 1
end tell
activate application (path to frontmost application as text)
#----------------------------------------------
Hope it works for you too.
Regards,
Nestor
===============================================
>
> On Wednesday, 14 April 2021 at 10:15:29 UTC+12 Nestor Aguilera wrote:
>
>
> > On 13 Apr 2021, at 18:32, Rob Russell <
sum...@gmail.com> wrote:
> >
> > Hi,
> >
> > Just trying to adapt a distraction free script I found on this list and am looking for a way to toggle the BBEdit Window to Full Screen - you know, when you click on the little green dot in the top left of the window, or hit escape to pop-out of that mode.
> >
> > The zoomed property in A/S seems to refer to the natural size of the window as defined by Window->Save Default Text/Project Window, which is not what I'm looking for here.
> >
> > Any hints, anyone?
> >
> > Thanks
> >
> > Rob
>
> Googling "applescript maximize current window" I found <
https://gist.github.com/FranciscoG/4a94fca5fb452f2a7dda> which seems close to what you want. You may put it with other BBEdit scripts (chapter 13 of user manual) and assign a shortcut to it (p. 25 of manual).
>
> Best,
>
> Nestor
>
> ===============================================
>
> >
> > --
> > This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "
sup...@barebones.com" 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
bbedit+un...@googlegroups.com.
> > To view this discussion on the web visit
https://groups.google.com/d/msgid/bbedit/88311f8e-6eac-48ec-b560-bd254746dc06n%40googlegroups.com.
>
>
> --
> This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "
sup...@barebones.com" 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
bbedit+un...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/bbedit/7f6965eb-3f00-4384-8c5b-9dc545145e85n%40googlegroups.com.