Write them out as csv its quite trivial (didnt test from my head should work, ive been doing this a loong time)
CODE
{//protect global pollution
$fileId=fopen "C:/someDir/somename.csv" "w"
;
for ($item in ls -type locator
){
$loc=xform("-q","-t", "-ws", listRelatives("-p", $item));
fprint $fileId ($loc[0]+";"+$loc[1]+";"+$loc[2]+"\n");
}
fclose $fileId;
}
Please note this will not work in maya ple (no export will) Tough you could echo them in segments into a text outout and copypaste them to a file