As already written here in the last few days and weeks, the print function (save as pdf / export as pdf) has been changed by the update to macOS Ventura. After I updated all the Keyboard Maestro macros and they all work now fortunately, I tried a little bit.
I found out that it would be an advantage for me if I could change the default paper size as easy as possible.
The goal is to always change the default paper size after a few prints.
As it looks I can do it through system preferences, AppleScript or through the tTerminal!?!?
What is the best way / how do other Keyboard Maestro users do it.
Can anyone maybe help me?
I have never worked with the Script Debugger or AppleScript...
Again, that sets the default paper size to A5 -- you'll see that you have to use the paper ID strings listed in the blog post you linked to. If the size you want isn't listed then set it in System Settings then run the following in Terminal to get the string needed: