Making most objects selected is simply a matter of setting its .selected property to true:
myObject.selected=true;
Trickier is telling the script
which object to select. Open the AI Javascript Reference, do a search for ".selected =", and you will find numerous examples.
JET