Created
February 17, 2016 21:28
-
-
Save christiangenco/de148d0ae8c87db45bf7 to your computer and use it in GitHub Desktop.
command line utility to add urls to the Safari iOS and Mac reading list
This file contains hidden or 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
#!/usr/bin/env osascript | |
-- usage: | |
-- add_to_reading_list "http://google.com" "http://yahoo.com" | |
on run argv | |
repeat with arg in argv | |
tell app "Safari" to add reading list item (arg as text) | |
end repeat | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment