The following function returns a list – {1,2,3}
I want to enter each item of the list into a record with different values and keys.
Is there any easier way of doing this?
on somefunc()
return {1, 2, 3}
end somefunc
set {a, b, c} to somefunc()
set my_record to {a:a, b:b, c:c}
This is what I basically want:
{a:1, b:2, c:3}
When working with records, I like to use ASObjC Runner
Here is an example from the record suite:
EDIT
You can also use the run script method: