On fixGroupMembership(theBibDeskDocu, theCiteKey, oldPub, newPub) remember in 'youngestPub' possible candiate for a new set of publications with the same cite key My fixGroupMembership(theBibDeskDocu, aCiteKey, aPub, youngestPub) However, for the sake of efficiency I wish not to support this behavior. same cite key in 'aPub', and copy only those of 'aPub'. If this should be an issue, then we would need to first delete all static group membership info in 'youngestPub' in case we encounter a 3rd, or 4th etc. The latter should be no big issue, since typically in multiple sets of publications it is only the last publication that matters. The end result will be that youngestPub (first in set of publications with same cite key) will be member of all static groups of the publications in the set (unification). But this is unavoidable with this algorithm looping simply through all publications. we fix the static group membership redundantly in cases where aPub is also merely an obsolete duplicate, since we have possibly not yet advanced to the end of the set with the same cite key. Set thePubs to (sort (get publications) by "Cite Key" subsort by "Date-Added" without ascending) To retain static group memberships we have to ensure that such "membership info" is copied from the last to the first publication of any set of publications with the same cite key (see vars 'aPub', 'prevPub', 'youngestPub'). get all publications sorted by cite key ensuring that in any set of publications with the same cite key the youngest comes first and the oldest, typically the only one of the set that is still member of any static groups, comes last. Set theBibDeskDocu to document 1 of application "BibDesk" Make sure the two copies are always kept identical. IMPORTANT NOTE: The following routine is an identical copy as contained in files 'Cleanup Duplicates.scpt' and 'Fix PDF and URL Links.scpt'. I find one promising AppleScript in here: īut, since I am total beginner with AppleScript, I couldn't adopt it to my needs. They are however don't manage to find them all not even half of them. I have tried both BibDesk and Jabref to remove the duplicates. The duplicates have no identical Citation Keys. I have more than a thousand duplicates in my Bibtex library.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |