Two-way Updating A Textscrolllist

Is it possible to make a textScrollList behave similar to the Outliner in the sense that it updates when an object is selected in the scene, and vice versa, have an object be selected when highlighted in the textScrollList? (I'm trying not to use the Outliner function yet before I exhaust all possibilities).

I can get either or to work, but not both at the same time. I'm using a SelectionChanged scriptJob to refresh the list.

Any ideas would greatly help. If you need more info, please let me know.

Thanks.

this way?

CODE
{
    window;
    columnLayout;
        textScrollList -h 300 -allowMultiSelection true
            -selectCommand ("select textScrollList -q -si asdgasdgasdgasdg")
            asdgasdgasdgasdg;
        for ($x in ls -tr)
        {
            textScrollList -e -a $x asdgasdgasdgasdg;
        }
    showWindow;

    scriptJob -parent asdgasdgasdgasdg -e SelectionChanged "asdgasdgasdgasdg_Update";
}

proc asdgasdgasdgasdg_Update()
{
    textScrollList -e -deselectAll asdgasdgasdgasdg;
    string $sel[] = ls -sl -tr;
    for ($x in $sel)
    {
        textScrollList -e -selectItem $x asdgasdgasdgasdg;
    }
}

Thanks ewerybody. It seems the trick was to put the selectCommand in the textScrollList. I'll implement that with the script and let you know how it pans out.

Cheers.

selectCommand. yea what else! how did you do it before??