Take a look at this macro. The core of it does exactly what you are asking for.
You would just need to change the Actions that process each link to do as you wish.
Take a look at this macro. The core of it does exactly what you are asking for.
You would just need to change the Actions that process each link to do as you wish.