outFile = getSaveFileName caption:"Safe coords.:" types:"Coords. list (*.txt)|*.txt|All Files (*.*)|*.*|"
if outFile != undefined then
(
outFile = createfile outFile
for i in objects do
(
pos2 = i.pos
rot1 = i.rotation as eulerAngles
rot2 = [rot1.x,rot1.y,rot1.z]
format "% %\n" pos2 rot2 to
utFile
);
close outFile
);