Many thanks to you! This is awesome!
My problem right now is:
(1) the sync will abbort when it has problems handling the pdf's - so having 1 pdf it can't sync will make it stop
(2) in my case it tended only to mark up the first 200 chars of the annotations and leave the rest unmarked...