set myRec to {A:"Foo", B:"Bar"}
try
myRec as string -- will always fail, as Stefan points out.
on error e
set tError to e
set O1 to offset of "{" in tError
set O2 to offset of "}" in tError
set tE to text O1 thru O2 of tError
end try
Since it is a hack, it’s not guaranteed to work across revisions of AppleScript. Having said that, Nigel Garvey told me that it has worked since back in Classic days when it was first introduced by Arthur Knapp.