Reference highlighted rows in button actions

I would really like to be able to access the currently higlighted / selected rows in a table. This way I would be able to bulk update the highlighted rows with a button, and that would greatly improve performance and UX.
Our current workaround is to have a button column, and the user would have to click it in every row. With my suggestion the user could select a range of rows, and that is much less clicks.