I have set KM to show the list of macro in Small size setting. But the font size did not apply to the AppleScript code and it looks giant in comparison:
Hello @cherry
Have a look at the Preferences Page of the KM-Wiki.
There is a section for the various Text Fields - even for the Script actions.
But I don’t think that you’ll have enough room to change it from there.
I think it depends on the dedicated Preference for AppleScript and your Settings in the Script Editor Application.
Peter (@peternlewis), please correct me if I am wrong here … but let’s say I’ve set KM‘s AppleScript Preference to Fixed or System, the size of the font in the Action depends on the size that’s set in Script Editor- right ?!
Greetings from Germany
Tobias
I tried to do the following in Terminal (thanks for the link!):
defaults write com.stairways.keyboardmaestro.editor Font-AppleScript -string "FIXED:10"
or
defaults write com.stairways.keyboardmaestro.editor Font-AppleScript -string "Monaspace Neon:10"
, quit engine, quit Editor and restart and no change.
I also launched Script Editor and changed the font sizes there and no change to KM as well.
Hello @cherry
Please Note:
FIXED, USER & SYSTEM are Value Types, which aren’t able to be used combined like you did (FIXED:10)
They have to be used each one on its own without anything else.
The Behavior of Script Action Fonts is - what I am thinking absolutely the same and you are maybe only able to use the mentioned 3 without anything else appended to them.
But to have the confidence that I am right on this we’ll need to have to wait until Peter has replied.
Greetings from Germany
Tobias
The system provides the rich text formatting when “compiling” the script. So the Keyboard Maestro setting will apply to the raw text you type, (eg "FIXED:6" for emphasis)
But the compiled (styled) form is done by the system:
So the answer to your original question is “yes and not”.
Thanks, Peter. I see what you are saying. But, there is inconsistencies between two AppleScript actions in terms of size and it's driving me nuts I deleted the AppleScript action and added new ones, then paste the code. It seems to remember its previous size. But, the second AppleScript has a smaller font size.
I'm not sure why the two are different - you can use the Edit ➤ Format ➤ Font ➤ Show Fonts and adjust the font, but recompiling (for me) switches back to the original size.
I suggest you create a new action and copy that text, and then paste it as plain text (which you can do in a variety of ways) and then compile it by pressing Enter and see what happens.
I always thought compiling means clicking some other macros, then coming back to the original macro and it would compile it. Because, pressing Enter in the AppleScript box would create new line, not compile. Then, it hit me! Ha ha ha! Ok, this works now.. Much love to you, Peter!