Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Generate a list of Reading List URLs' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Generate a list of Reading List URLs
Authored by: Lri on Jul 16, '13 05:28:06AM

Another option using the plist Ruby gem:

sudo gem install plist;plutil -convert xml1 -o - ~/Library/Safari/Bookmarks.plist|ruby -rubygems -e 'require "plist";puts Plist.parse_xml(STDIN.read)["Children"].select{|e|e["Title"]=="com.apple.ReadingList"}[0]["Children"].map{|e|e["URLString"]}'

Or if you don't have other bookmarks:

defaults read ~/Library/Safari/Bookmarks.plist | sed -En 's/^ *URLString = "(.*)";/\1/p'



[ Reply to This | # ]