Creating text layers with predictable character properties
I'm trying to create a text layer programmatically, and I ran into the following problem:
Not all character properties can be set with scripting. In particular, the ones marked with blue in the lower area of the character property window are not accessible:

However, it gets worse: New text created uses the currently selected character properties. In other words, if the user has selected small caps, that's what will be created.
To know what I'm creating, I will have to
- either find a way to access the missing character properties,
- or find a way to at least reset them, presumably by calling the last command show in the following screenshot:

I tried to find this command with app.findMenuCommandId("Reset Character"), but to no avail.
Does anyone have any further ideas?
(EDIT: I now also had a brief look at the SDK (for AEGPs). I might be overlooking something (I only just compiled and deployed some of the examples for the first time), but it looks as if with the SDK even less access to character properties is possible: AEGP_TEXTDOCUMENTSUITE1 has only two functions, a getter and a setter for a string, and that's it. Replacing the text literal is all the sample Text_Twiddler does, so maybe that's why. Not that I was keen on writing C, but if I don't have a choice... So if I'm missing something here, please point this out too.)
