"$.name" doesn't know what to do because you're not specifying what objects name to get. You need to loop through the objects and get all their names, like such: out_name = ((GetDir #export)+"/test.txt")out_file = createfile out_namefor curObj in (selection as array) do (format "Name:% \n" curObj.name to:out_file)close…
For that, you could loop through the values individual characters as a string and replace the periods with commas; out_name = (getDirectories ((systemTools.getEnvVariable("USERPROFILE"))+"/Desktop"))[1] + "test.txt"out_file = createfile out_namefor curObj in (selection as array) do ( posX = (curObj.pos.x) as string for i=1…