I apologize for misleading you. I am probably the least qualified member of the forum.
For starters, did you know that you can highlight in Safari the text in your post → context menu → services → add to Safari reading list. It works. I tried it.
The problem's been on my mind for some time. And I can remember again: I tried the script with the Script Editor, and also tried Execute AppleScript in Keyboard Maestro. But since it's a prototype and I don't understand it, of course nothing came out...
I have also read many times here in the forum that the
Light version of Script Debugger 7 is free, but since my only programming skill is Basic from the late 80's, it doesn't really help me either.
The problem occurs so often that I have now dared to create a new entry.
I'll do this part for you – extract the href links from the highlighted/selected text in Safari.
It places each URL 1 per line in a variable, and from there you can open each one in a tab in Safari with the Lines In collection.
Personally I'd do the whole job in AppleScript (other than the copy action), because it's much more efficient when consolidated – however I've broken it up in such a way that (I think) most folks will find the process a bit more friendly.
If you have trouble finishing your task just let me know, and I'll help out.
I didn't know how to get HTML links from selected text like this the way @ccstone did, but I think I can at least help out with streamlining his excellent macro. This version uses local variables, so there's no need for any housekeeping, and keeps everything inside one For Each loop. I also got rid of the clipboard seed based actions since KM's native Copy action has a pause built in:
Thank you so much for the solution. That's exactly what I had in mind.
I hadn't thought of this solution originally. But displaying the text in a window also has an advantage: Since I also use the App Popclip, I can first display all links and then simply open the desired link via the "Open Link" icon! Thanks again here.
While testing, I found out that the App Popclip implements exactly the solution of @gglick, only not in a new window, but in new tabs in the old window!!! I didn't know that...