need to remove silence at end via script

+1 . The only change that it would need in the GUI would be one or two check boxes:

Only from start [X] and/or only from end [X] of selection. (default off)

or

Only from ends of selection [X]


Will do.

There are also the closely related “Trim Track” and “Trim Extend” plug-ins: TrimTrack plug-in
and already on the wiki: “Extract Audio” and “Time Shifter” Missing features - Audacity Support
Can we rationalize these into one or two plug-ins?