Script: obtain parameters from other commands/script

 From:  miquik
10900.3 In reply to 10900.2 
Hi Michael,
My script generate an AI file from geometry then read it to perform some operations. To do so, I need to know what layer name/color/width user has choosen from AI exporter.
I can read these informations from AI file, but I need to process layers in specific order and then I have to be sure AI exporter will always export data in same order.

An additional question: in my script user can set some custom properties; how can I "persist" those values so when I open MOI again I have those properties filled with default values?
Should I write to INI settings file? Can I do that?

Thanks