View Single Post
Old 01-19-2013, 02:07 PM   #51
rkomar
Wizard
rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.
 
Posts: 2,986
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
I wrote a script last weekend, but put off uploading it because I wanted to include a version of find for the older 3XX ereader models. However, I'm not sure that the notes are in the same format on those devices, so I think I'll just release the script for the Pro models only.

The script deletes all the state data and notes for ebooks that aren't on the device any longer. To make the script simpler, I used find and bash, and included them in the zip file.

As you noted, deleting the notes may not be what is wanted. However, making the script interactive would make it tedious to use. If you want to save notes, I think it's better to just comment out the notes handling stuff in the script, and just use the Notes application to delete unwanted notes.
Attached Files
File Type: zip clean_state-Pro.zip (643.4 KB, 591 views)
rkomar is offline   Reply With Quote