Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Add a URL from Chrome to Safari's reading list
#!/usr/bin/env ruby -wKU
require "rubygems"
require "appscript"
include Appscript
chrome = app("Google Chrome")
safari = app("Safari")
chrome_tab =[1].active_tab
save_url = chrome_tab.URL.get
save_title =
safari.add_reading_list_item(save_url, :with_title => save_title)

This comment has been minimized.

Copy link

@peterjenkins peterjenkins commented Dec 2, 2013

Works great, thanks. You need to run the following command:

sudo gem install rb-appscript.

Would be nice to make a Chrome extension.


This comment has been minimized.

Copy link

@J7mbo J7mbo commented Jan 18, 2014

Would be awesome to have a Chrome extension - especially if it worked on Windows and Linux.


This comment has been minimized.

Copy link

@tzarskyz tzarskyz commented Feb 7, 2014

tell application "Google Chrome"
set pageUrl to get URL of active tab of first window
end tell
tell application "Safari" to add reading list item pageUrl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment