On Sun, 06 May 2007, ddimuc at sbcglobal.net wrote: > I'd like to automate the export of my DateBook and AddressBook data to > the various formats offered (from the jpilot "export" menu). > > At the moment, for example, I manually export the DateBook database as a > "txt" file, compress it, and rename the file to a more meaningful name > (that is, one that includes, for example, my system name and current > name). Then, I export DateBook database as a "csv" file and follow the > same mundane manual process...quite frankly, this manual process really > bites. > > I'd like to write a script to automate this stuff for me. But, in order > for the script to function appropriately, I would need to somehow > execute jpilot in the script. Although I searched the jp manual/site > rather quickly, I did not find anything that would help me accomplish this. You could have something that reads the pdb files in ~/.jpilot/ directly, to generate your 'other format' versions. That could be slightly out of date though, as it wouldn't include jpilot-caused changes that haven't been moved over to the palm yet. I believe there are pure Perl libraries for this, for example. To do this myself, I wrote a library (C and Python) which reads the jpilot databases. It's at http://jppy.zanu.org.uk/ . It would let you use a Python script to extract your information, either from a cronjob, or hooking into the jpilot sync process. Nick -- Nick Piper, Developer, LogicaCMG http://www.nickpiper.co.uk/ GPG Encrypted mail welcome! 1024D/3ED8B27F Choose life. Be Vegan :-) Please reduce needless cruelty & suffering !
More information about the jpilot mailing list