cocoa - Access Kindle contents via Objective C -
i'm looking way access contents of kindle using objective-c. i'd to:
- list documents on device
- add , remove documents
- manage collections (add , remove documents, etc..)
i know calibre (and more) it's in java.
it's first time i've ever tried access device of type cocoa app. if has ideas or starting points i'd appreciate it.
you can making basic filesystem calls nsfilemanager, since kindle gets mounted disk in /volumes. can pull file metadata way book titles , authors , stuff.
edit: @peter hosey brings point:
note: don't assume mounted volumes in
/volumes. administrators can mount device anywhere, fstab may set mount specific device in specific place, , apple radically change file-system layout. usensfilemanager'smountedvolumeurlsincludingresourcevaluesforkeys:options:method or disk arbitration find of mounted volumes, wherever are.
not sure managing collections, though. this plugin gives calibre support doing so, looks broken kindle touch. collections seem kindle-proprietary thing stored in collections.json file. sounds kindle touch changed game, though, , won't able manage collections on (unless amazon decides release sort of sdk simplify whole process, wouldn't hold breath).
the kindle touch holds collections file @ /var/local/cc.db, i'm betting sort of sqlite file. sadly can jailbreaking kindle touch. this tool sounds may give insight, since has changed on touch, you're looking @ making special cases collection management based on device type. best of luck (if you're making cocoa-based kindle manager, love throw money @ when finished)!
Comments
Post a Comment