A simple bash script for exporting iBooks library and annotations of all books.
ibooksnotes [destination]
ibooksnotes ~/Documents/Notes/
There will be 2 files being written to the destination—Books.html
and Annotations.html
.
Run iBooks and open the books you would like to export first. This can ensure iBooks syncs all annotations with iCloud.