Proper way to create an AppleEvent record descriptor from NSDictionary

When using NSScriptCommand, is there any way to create an NSAppleEventDescriptor from an NSDictionary with arbitrary keys without using keyASUserRecordFields?

Am I correct in thinking that this constant is deprecated? I ask because there is still active documentation using it.

Is there another way to return a record where the keys aren't known at compile-time?

Proper way to create an AppleEvent record descriptor from NSDictionary
 
 
Q