Skip navigation

Paste URLs into new tabs

304 Views 10 Replies Latest reply: Sep 8, 2013 6:25 PM by Hamper RSS
Hamper Level 1 Level 1 (0 points)
Currently Being Moderated
Sep 8, 2013 4:49 PM

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?

  • Carolyn Samit Level 10 Level 10 (84,015 points)
    Currently Being Moderated
    Sep 8, 2013 4:52 PM (in response to Hamper)

    Not an extension or plugin I'm aware of.

  • Niel Level 10 Level 10 (234,265 points)
    Currently Being Moderated
    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)

  • Carolyn Samit Level 10 Level 10 (84,015 points)
    Currently Being Moderated
    Sep 8, 2013 4:59 PM (in response to Hamper)

    Ooops.. looks Niel came to your rescue 

  • Niel Level 10 Level 10 (234,265 points)
    Currently Being Moderated
    Sep 8, 2013 5:21 PM (in response to Hamper)

    1. You don't; the source is adjustable. The following code will retrieve the content of the frontmost TextEdit document:

     

    tell application "TextEdit"

    set the_URLs to text of document 1

    end tell

     

    2. I don't write Safari extensions.

     

    (88645)

  • Niel Level 10 Level 10 (234,265 points)
    Currently Being Moderated
    Sep 8, 2013 6:11 PM (in response to Hamper)

    Yes. Save the script as an application.

     

    (88648)

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.