done it.
You can use:
$myArr = `getAttr -t $myTime $myObject.wm[0]`;
xPos = $myArray[12];
yPos = $myArray[13];
zPos = $myArray[14];
this uses the world matrix to give you the exact world space position.
Alan
Technical Director - Framestore
Currently working on: Your Highness
IMDB