Thanks for both replies, Christiaan. I must have let this discussion pass me by; probably figured it wouldn’t affect me :-}
Justin > On Apr 9, 2019, at 05:45 , Christiaan Hofman <[email protected]> wrote: > > As discussed before, this is a simple one line script to get it: > > #!/bin/bash > echo "$1" | base64 -D | plutil -convert xml1 -o - -- - > > This will give the plist in xml format with the relativePath rather easily > figured out. You could also type this on a command line with the bask-file > value inserted in the place of $1 > > I also attach an extension to Adam's read_bdsk_file.py that can read both the > old and the new format. > > Christiaan > > <read_bdsk_file.py> > >> On 9 Apr 2019, at 10:05, Christiaan Hofman <[email protected]> wrote: >> >> Yes, the format of the linked file data has changed. It is now just a plist >> and not an archive. If you decode it, it should be much clearer to read. >> >> Christiaan >> >> Op di 9 apr. 2019 04:27 schreef Justin C. Walker via Bibdesk-users >> <[email protected]: >> Hi, all, >> >> A while back, Adam provided a handy little snippet (read_bdsk_file) of >> python code to read the file entries in .bib files. At some point recently, >> it stopped working, because >> >> print plist["relativePath"] >> TypeError: 'NoneType' object has no attribute '__getitem__' >> >> This seems to mean that the content of the bask-file entries has changed. >> Is that the case, or has something else gone wrong? >> >> Clues much appreciated. >> >> Thanks! >> >> Justin >> >> -- >> Justin C. Walker, Curmudgeon-At-Large >> Institute for the Absorption of Federal Funds >> -------- >> If you're not confused, >> You're not paying attention >> -------- > > _______________________________________________ > Bibdesk-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/bibdesk-users -- Justin C. Walker, Curmudgeon-At-Large Director Institute for the Enhancement of the Director's Income -------- "Weaseling out of things is what separates us from the animals. Well, except the weasel." - Homer J Simpson -------- -- Justin C. Walker Curmudgeon-at-large -- Network, n., Difference between work charged for and work done _______________________________________________ Bibdesk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bibdesk-users
