IDE Script "NewConstant" Default Value

I am using the IDE Script command doCommand(“NewConstant”) to create (obviously) a new Constant.

After I do that the script can set the name of the Constant by placing it on the clipboard and issuing a doCommand(“Paste”)… which works fine… since after the Constant is created the focus is on the Name field.

But now I want to also set the Default Value property of that new Constant… so I tried to put a “tab” on the clipboard and paste that but just puts the tab into the Constant’s name field and does not advance the cursor to the Default Value field.

I also tried pasting something like “constantName”+chr(9)+“defaultValue”… but that just puts that entire string including the tab into the Name field.

Is there any way to set the Default Value from an IDE Script?

Thanks…