GUI: Updating an edittext type box
Hi all.
I'm a database developer by profession. Doing some work, however, in ID for a client. In my down time I'm exploring scripting. I built a cool GUI for the scripts that I'll use while working on a client's document.
On the initial running of the script that generates the GUI, an edit text box gets populated with the names of the layers in this document. If the layers are NOT set how I need them for the client, then I run an "Set Layers" script which adds a 2nd layer, renames both layers and such.
What I need is that "Set Layers" script to update the textbox in my GUI:

How do I get what temporarily shows up in the Alert into that edit-text field? How do I pull the object name from that? When the window generates, this code generates that edittext box.
utilityGroupThree.add ("statictext",undefined,"Layers:");
var myTextLayers = utilityGroupThree.add("edittext", undefined,layerNames);
myTextLayers.characters = 10;
i'm guessing the name of the textbox doesn't stay. Can I assign this text box something so that I can grab it for a function called on a button click?
Thanks.
