Skip to content

Instantly share code, notes, and snippets.

@andphe
Created August 2, 2012 01:41
Show Gist options
  • Save andphe/3232343 to your computer and use it in GitHub Desktop.
Save andphe/3232343 to your computer and use it in GitHub Desktop.
Export your links from Safari reading list
/usr/bin/plutil -convert xml1 -o - ~/Library/Safari/Bookmarks.plist | grep -E -o '<string>http[s]{0,1}://.*</string>' | grep -v icloud | sed -E 's/<\/{0,1}string>//g'
@ianhobbs
Copy link

Works well !!

@j1nma
Copy link

j1nma commented Oct 14, 2018

I can't get it to work on Mojave. Any help?

@hairybridget
Copy link

hairybridget commented Nov 2, 2018

I can't get it to work on Mojave. Any help?

Just figured this out. Mojave added extra security layers to everything, so you have to go into System Preferences > Security & Privacy > Privacy. Under "Full DIsk Access" add Terminal. After Terminal.app relaunches, rerun the script and it should work again.

@SylvanG
Copy link

SylvanG commented May 26, 2020

very good, thank you

@RobotimusPrimed
Copy link

I love this!!! Thank you!!

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