Skip to content

Instantly share code, notes, and snippets.

@jtbrough
Created January 20, 2014 01:40
Show Gist options
  • Save jtbrough/8513592 to your computer and use it in GitHub Desktop.
Save jtbrough/8513592 to your computer and use it in GitHub Desktop.
Loop through links in a text file and add each to Safari's Reading List
set fileContents to read theFile
set theURLs to every paragraph of fileContents
tell application "Safari"
repeat with theURL in theURLs
if length of theURL is greater than 0 then
add reading list item theURL
delay 1
end if
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment