set RList to {}
copy {a:0, b:1, c:2} to end of RList copy {a:1, b:2, c:3} to end of RList
log "RList=" & TextOf(RList)
on TextOf(aVariable) try return "" & aVariable on error errm log errm if errm begins with ¬ "Can’t make " and errm ends with " into type Unicode text." then ¬ return text 12 through -25 of errm return "item of class " & (class of aVariable) end try end TextOf
--> (*Can’t make {{a:0, b:1, c:2}, {a:1, b:2, c:3}} into type Unicode text.*) (*RList={{a:0, b:1, c:2}, {a:1, b:2, c:3}}*)
Be careful: the "’" in "can’t" isn't what you'd type.
Copy it from the error message so that it'll match.
--Gil
|