Mar, I have a suggestion for an Action that may work for you if all the images are positioned similarly.
Open a file
Edit > Canvas size. Relative. Enter a minus figure in both height and width, about the size of the image border. You will be told that you will clipping area. Click: Proceed
It will trim to a borderless image which can be Saved
Note that even though you may have different sized images, since the adjustment in canvas size is relative, it will trim the images to their individual size.
One more thing: A longer Action could then increase the canvas size to provide a white margin, if desired.