Applescript record to KM variable?

Native AppleScript has very poor support for records. But with ASObjC you can work wonders. See if this topic can help you:

Making AppleScript Records Dynamic using ASObjc