Is there a possible key command or lua script message to enter text into a selected text frame? if possible by script is it also possible to change the font size by script?
It’s not a script-based method, but if you apply paragraph styles to specific bits of text, you can then adjust whatever parameter of the paragraph style you want to change, and all bits of text that use the same paragraph style will update – in text frames and text items, and wherever else it’s used.
If you’re currently controlling the appearance of text in text frames by manually using the text editor options for all text, do look into paragraph styles – you’ll hopefully find it a much more consistent and streamlined way of determining how text looks.
EDIT: I wrote some of my thought below, then forgot to click “Reply”. Now I see that Lillie answered already. I leave my thought here below anyway, in case could be of further help
Just pressing Enter activates text input (and opens the Text editor). (Not sure about script… )
Again don’t know about script…, but you can use shortcuts:
to change font size, you need to activate the Text input (Text editor) with Enter, do Select all or just the needed text, then you can use:
ShiftCommand(Control). to increase
ShiftCommand(Control), to decrease
Or you can just edit the font size in Paragraph Style, to edit all the text that uses it, at once.
If you use staff- or system-attached text, you can decide which paragraph Style you want to use at the moment of its creation: you can assign a shortcut to every Paragraph Style (Key Commands ->filter for create text. )
To change the text settings after the fact, you can select the existing system or staff text (without activating the text input/editor), right click and do Edit Font, or use a shortcut for it. This will change all the text that uses that Paragraph Style.
Or record macros with different setting for the Common>Custom size property… (if you want a script
)
So not quite what you asked (also because text in text frames work slightly differently then normal text); it is a mixture of mouse and shortcuts, but probably someone else has further suggestions…
Can you tell more about the usage case, for when you need to increase/decrease the font style locally often?