Skip to content

Instantly share code, notes, and snippets.

@fuzzy76
Last active November 14, 2018 17:43
Show Gist options
  • Select an option

  • Save fuzzy76/f71e48c74ecbae12a23aece80ede9a17 to your computer and use it in GitHub Desktop.

Select an option

Save fuzzy76/f71e48c74ecbae12a23aece80ede9a17 to your computer and use it in GitHub Desktop.
Extract Safari reading list from plist to txt file of urls
  1. Install xmlstarlet
  2. Copy Bookmarks.plist out of ~/Library/Safari manually because there are weird permissions on that folder
plutil -convert xml1 -s -o - Bookmarks.plist | xml sel -t -v '//dict[key = "ReadingList"]/key[text() = "URLString"]/following-sibling::string[1]/text()' > Bookmarks.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment