kshitij,
the complete application state information together with all data is stored in the "Globals Tree". This is the tree that you can browse in the Lua shell when you press F4.
It can be accessed with grtV.getGlobal and grtV.setGlobal. To get help about these commands simply type ?grtV or even ?grtV.getGlobal and ?grtV.setGlobal.
The store the current globals tree to the file "globals.xml" you can do
/ > grtV.save(grtV.getGlobal("/"), "globals.xml")
And to load the globals tree you do
/ > grtV.setGlobal("/", grtV.load("globals.xml"))
Of course this can also be done from a Lua script at any time. When you look at
http://svn.mysql.com/svnpublic/mysql-migration-tool/source/windows/Main.pas at the function procedure TMainForm.RestoreSnapshot(FileName: WideString); you will see that I adjust the current section and page from the values stored in /migration/applicationData/CurrentSection and /migration/applicationData/CurrentPage. This is the only addition I do in the GUI and this is not needed in the script of course.
Can you tell me what exactly are you trying to do?
Mike
Michael Zinner, Team Lead, Developer Tools
MySQL AB, www.mysql.com
Are you MySQL certified? www.mysql.com/certification