Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Paste URLs into new tabs

Is there a Safari extension that allows me to paste multiple URLs into Safari so it opens them in separate tabs?


I know Safari is quite restrictive, but is there a way to get this made even, does the Safari API allow for this kind of thing?

Posted on Sep 8, 2013 4:49 PM

Reply
10 replies

Sep 8, 2013 4:58 PM in response to Hamper

Open the AppleScript Editor in the /Applications/Utilities/ folder and run a script such as:


set the_URLs to "

http://www.apple.com/?a=01

http://www.apple.com/?a=02"

set the_strings to paragraphs 2 thru -1 of the_URLs

tell application "Safari"

repeat with this_string in the_strings

open location this_string

end repeat

end tell


To do this with the clipboard contents:


set the_URLs to the clipboard

set the_strings to paragraphs of the_URLs

tell application "Safari"

repeat with this_string in the_strings

open location this_string

end repeat

end tell


(88644)

Sep 8, 2013 5:07 PM in response to Niel

What I normally do is have a list of URLs in Text Edit an just c&p them into Chrome and they populate into new tabs, this one looks like I have to set it up with certain URLs in mind?


If you can do this Niel, then why not release an extension, I can't be the only one who has needed this since v4?

Sep 8, 2013 6:08 PM in response to Niel

So, if I want to simply paste a block list of URLs from a text file into new tabs in Safari I need, which would be from the clipboard then as I copied them from the text file:


set the_URLs to the clipboard

set the_strings to paragraphs of the_URLs

tell application "Safari"

repeat with this_string in the_strings

open location this_string

end repeat

end tell



That in a script, I double click it and it works?

Paste URLs into new tabs

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.