Skip to content

Instantly share code, notes, and snippets.

@christiangenco
Created February 17, 2016 21:28
Show Gist options
  • Save christiangenco/de148d0ae8c87db45bf7 to your computer and use it in GitHub Desktop.
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
#!/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