View Single Post
Old 10-21-2007, 02:59 AM   #25
mrkai
Bit Wrangler
mrkai has a complete set of Star Wars action figures.mrkai has a complete set of Star Wars action figures.mrkai has a complete set of Star Wars action figures.mrkai has a complete set of Star Wars action figures.mrkai has a complete set of Star Wars action figures.
 
Posts: 181
Karma: 415
Join Date: Oct 2007
Device: Sony PRS-505
Check this out...

Quote:
Originally Posted by kovidgoyal View Post
I'm glad to hear that it does have this. Do you have a link to some documentation about this system. I can always write a python extension to use cocoa, or ship pyobjc with libprs500.
http://www.oreillynet.com/pub/a/mac/...yobjc_one.html

Look for NSWorkSpace on this page. This code is a python example of how one would do what i was talking about.

I suppose in the case of the 505's internal memory, one would look for say,database/media|cache|sync on whatever path the notification gives the handler there (
Code:
path = aNotification.userInfo()['NSDevicePath']
in that example) and run with it...process the metadata in cache/media.xml...get a raw file listing, etc/whatever.


Hope that help in some way

-K
mrkai is offline   Reply With Quote