Skip to content

Instantly share code, notes, and snippets.

@remore
Created December 26, 2015 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save remore/649fa1a021c92dd0a357 to your computer and use it in GitHub Desktop.
Save remore/649fa1a021c92dd0a357 to your computer and use it in GitHub Desktop.
set urlList to {"http://b.hatena.ne.jp/entry/", "https://www.reddit.com/submit?url=", "https://hn.algolia.com/?sort=byPopularity&prefix&page=0&dateRange=all&type=story&query="}
set numURLs to (count urlList)
open location (item 1 of urlList) & (get the clipboard)
tell application "Safari"
activate
tell window 1
repeat with i from 2 to (numURLs)
set current tab to (make new tab)
set URL of document 1 to (item i of urlList) & (get the clipboard)
end repeat
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment