Hi,

Here's a simple Applescript that addresses your goal:

I saved it as "Magnify.scpt" in my BBEdit Scripts folder:

tell application "BBEdit"
    if (display magnification of text window 1 is 1) then
        set display magnification of text window 1 to 1.25
    else
        set display magnification of text window 1 to 1
    end if
end tell

This toggles the magnification of the front text window between 1 (100%) and 1.25 (125%). You could add more steps, e.g.,

tell application "BBEdit"
    if (display magnification of text window 1 is 1) then
        set display magnification of text window 1 to 1.25
    else if (display magnification of text window 1 is 1.25) then
        set display magnification of text window 1 to 1.5
    else
        set display magnification of text window 1 to 1
    end if
end tell

Repeatedly calling the script cycles through the steps you specify; of course, the if() conditions could be factors other than the current magnification (doc name, folder location, saved state, etc).

(Christopher Stone, a habitué of this list, could suggest how to dress that up with error handling and documentation - or perhaps he has a better way to do it!)

I have a similar script for adjusting tab widths.

You can assign a keyboard combination to it. You can also attach a script to a menu command, so this could be attached to the File -> New command (see the docs about attaching scripts to menus).

HTH


On 3/7/19 at 12:42 PM, [email protected] (Sean Ford) wrote:

I have the same issue (getting old). How can I suggest the addition of an "Expert Preference" for a default Text Display (Magnification)?

On Thursday, December 13, 2018 at 10:14:03 AM UTC-8, Howie Harshaw wrote:

Is there a way to set the default Text Magnification for new documents and the Scratch Pad? I know that I can set different print and display font sizes, but I would prefer to (for example) set the default Text Magnification to 125%. How can I do this? Thanks for any suggestions!


--

  - Bruce

_bruce__van_allen__santa_cruz__ca_

--
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://www.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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to