-- set up record object
set MyRecord to {Var1:"Cat", Var2:"Dog", Var3:"Horse", Var4:"Bird"}
set ListAnimals to {}
repeat with x from 1 to 4
GetRecordValue for ("Var" & x) from MyRecord
set the end of ListAnimals to the result
end repeat
log ListAnimals
-- get a value for dynamic record label
to GetRecordValue for SomeLabel from SomeRecord
run script "on run {parameters}
return " & SomeLabel & " of parameters
" & "end run" with parameters {SomeRecord}
end GetRecordValue
I am guessing that this is just some experimentation, since it's kind of a round about way to get a list item.