Paramaters are usally obtained by scripts using a prompt or a dialog. However If you code the script as a Photoshop Plug-in the plug-in script can record dialog setting into an action step that the user sets recording an action. If a user has sets of prameters they want to use often then can record an action for each set of settings. When they play the actions the setting will be passed to the scrpt by the action player. The Plug-in script will bypass displaying it dialog and use the settimgs passed by the action player.
thanks man, this is exactly what i needed.
Where I used to work, I wrote a script that was used by many photographers. I created an XML file that saved all the UI variables to each persons private folder on their computer. This way they could save a variety of presets for processing different types of images. The trick is to use a recursive function and goes though all the elements of your UI and records the values, the other trick is to give each control that you want to record it's own variable name and then name that control the same thing. This way you can extract the name of the control and use that as your XML node name.