How to create a record at the runtime in applescript? I would like to create a variable of type record at the runtime, I found this could work:

set bcd to run script ("{" &amp; "abc" &amp; ":" &amp; "def" &amp; "}")


But it doesn't:

error "The variable def is not defined." number -2753


I would like to use this in the sub-routine, where abc def will be substituted with a variables. 

How to create a record in applescript in the run-time if you have a key and a value?
Try:

set def to "My Text"
set bcd to run script "{" &amp; "abc:\"" &amp; def &amp; "\"}"