Created
January 20, 2014 01:40
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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