Get the last attibute modification on a node

Hey there is there any way in melscript to see the last setAtt applied ? I have been looking through global variables and Maya native code but don’t see anything yet.
Thanks for any pointers.

Ah think I have it…track the output and write a function to retrieve the ‘setAtt’ commands.
scriptEditorInfo -historyFilename "d:/history.txt" -writeHistory 1;