there are some mel tutorials around for creating some UI for your scripts.. The doc's are a little skectchy but what your asking for is in there also. I seen it but haven't gotten to try it my self yet..