boundare edges scripts

 From:  Andrei Samardac
5922.13 In reply to 5922.12 
Good Michael, I understood. Could you pleas modify a bit your .js script.

1. Separate selected
2. commands of your script (already made)
2. Run trim comand. (One thing I noticed when I run your script is when it finish its work all faces are deselected, it hase to be selected to run trim command)