Newest object is last in the list. Anyway you can easily do a different trick too make a set and add all nodes to it, then make a new set once you add stuff and take a difference between them. Tough just counting the indexes is enough, and newer mayas have hooks for reference imports but yeah. Sure no problem heres a script form a few years back or so:
global proc makeSetOnImport(){
$size=size(ls());
Import;
$nulist=ls();
string $return[];
for ($i=$size;$i<size(ls());$i+=1)
$return[size($return)]=$nulist[$i];
sets -n "newItems" $return;
}
menuItem -e -c "makeSetOnImport" MayaWindow|mainFileMenu|importFileItem;
It changes the behaviour of import file menuitem so that it makes a set callen newItems that contains all the newly imported items... use to your benefit.
Doesnet seem to work wery well in mayas after 2011 tough so try following instead:
global proc makeSetOnImport(){
$size=size(ls());
Import;
$nulist=ls();
string $set = `sets -n "newItems" {}`;
for ($i=$size;$i<size(ls());$i+=1){
sets -e -forceElement $set $nulist[$i];
}
}
menuItem -e -c "makeSetOnImport" MayaWindow|mainFileMenu|importFileItem;