Map scaler help!

Ahai every one, right now I' trying to writte my own little mapscaler editor floater and Im stucking with some problem :

1. every time I want to edit object that doesn't have modifier map scaler it giving me error warning!
2. when I apply mascaler to selection that more than 1 and I want to edit it , the query box appear as many as object in selection, how do I prevent that or diplay it only once even many object in selection!!

Mapscaler.zip1.56 KB