Help making a Select by size app

I ended writing a small script that adds the function to the UI: