Scripting the Trim command -- programmatically select objects to keep or remove?

 From:  mike (MVERHULST)
11415.3 In reply to 11415.2 
cool,

but i did dismiss the alert and the gui is still blocked. its like it is asking for me to select a section of the line to remove with the mouse. But how do i programmatically select line segments to keep or remove?