Scripting the active editable custom meta data field

Is it possible to script the activation of a particular custom meta data field for editing (where the cursor is blinking in the field ready for input)?

Only by using user interface scripting which is really fragile (e.g. updates of DEVONthink, customization of the custom metadata, a different window setup etc. can break it).