I have attached my Python implementation demonstrating how you can sync Trunk Notes with a local folder. Although this, as it currently stands, will only work on Mac OS X 10.5+ it would be trivial to modify it to work under Windows or Linux. As stated above I intend to rewrite this using Java so as to more easily be able to provide a cross platform tool with a GUI. At the moment the current implementation may have issues if your note names include non-ASCII characters.
The package includes httplib2 which is distributed under the MIT license, and pybonjour which is distributed under the BSD license.
TrunkSync itself is distributed under the BSD license - so feel free to do pretty much whatever you want with it apart from removing the copyright notice at the top of the file.
Before trying this make sure you have a folder called 'trunksync' created in your home directory (e.g. /Users/matt/trunksync)To try simply untar the compressed archive, and then in the trunksyncapp directory, the one containing the application not the one which will store your notes, run 'python trunksync.py'. Then put Trunk Notes on your iPhone/iPod Touch into Wi-Fi Share mode and wait for trunksync to find it.
Here is some example output after running trunksync,
- Code: Select all
mabookpro-3:tmp matt$ cd trunksyncapp
mabookpro-3:trunksyncapp matt$ python trunksync.py
Choose Trunk to sync with:
1. iPod.local.
Choice: 1
Username: matt
Password:
DEBUG:root:Getting note RenewableServices from device
DEBUG:root:Saving note to local /Users/matt/trunksync/RenewableServices.txt
DEBUG:root:Getting note TrunkSync from device
DEBUG:root:Saving note to local /Users/matt/trunksync/TrunkSync.txt
DEBUG:root:Getting note WorkDayPlanning from device
DEBUG:root:Saving note to local /Users/matt/trunksync/WorkDayPlanning.txt
DEBUG:root:Getting note TrunkIconPlan from device
DEBUG:root:Saving note to local /Users/matt/trunksync/TrunkIconPlan.txt
DEBUG:root:Getting note TaxStuff from device
DEBUG:root:Saving note to local /Users/matt/trunksync/TaxStuff.txt
DEBUG:root:Getting note Now from device
DEBUG:root:Saving note to local /Users/matt/trunksync/Now.txt
DEBUG:root:Getting note TrunkShortTerm from device
DEBUG:root:Saving note to local /Users/matt/trunksync/TrunkShortTerm.txt
DEBUG:root:Getting note Scratch from device
DEBUG:root:Saving note to local /Users/matt/trunksync/Scratch.txt
DEBUG:root:Getting note TrunkBetaTesters from local /Users/matt/trunksync/TrunkBetaTesters.txt
DEBUG:root:Saving TrunkBetaTesters to device
mabookpro-3:trunksyncapp matt$
I would be interested to here from anyone who successfully uses this! I have been using it since September for syncing Trunk Notes and the Mac OS X app Notational Velocity without any issues.
Matthew
Apps On The Move