-
-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Postscript for improved BibDesk compatibility #2181
Comments
It looks like you did not upload an support log. The support log is important; it gives If you did try to submit a support log, but the ID looked like This request is much more likely than not to apply to you too @daaaaaaaaaniel, even if you think it unlikely. Please trust
Once done, you will see a debug ID in red. Please post that debug id in the issue here. Thank you! |
This may work for you:
|
Thanks @retorquere ! This doesn't quite work, but it definitely points in the right direction. @tothzit in the Zotero forums has pointed out that the |
but note that verbatim escapes nothing, and unbalanced |
Thanks, this @retorquere I'm not the best person to answer your question re: what exactly is going on with BibDesk's alias files. But the explanation in this old thread is concise and provides more clarity. Ivan writes that it's a binary plist file encoded in base64, and decoding it gives a xml representation of what BibDesk stores. This thread is helpful too. Glenn gives us a one-liner to decode the
where "DATA" should be replaced with the actual contents of the field. In my own repo you can see some sample encoded file paths output by BibDesk compared to their regular counterparts. Check out MyBibliography-ZoteroBBT-BibLaTeX.bib for the BBT output, and MyBibliography-ZoteroBBT-BibDesk.bib for the result after opening it in BibDesk and saving it (I trimmed off some references to make the file smaller). To highlight just one example: The regular filepath is
|
Blegh, that seems like a very poor choice. Still, good to know. I might add that to the importer. |
Issue #667 discusses interoperability between BBT for Zotero and the open source macOS application BibDesk. The changes implemented in response to that discussion were aimed at allowing Zotero to import file attachments from a BibDesk-formatted
.bib
file.I would like to do the reverse (as I described on the Zotero discussion forum). I'm trying to achieve this by using BBT's postscript feature to convert the attachment file paths into key-value pairs comprised of key
bdsk-file-1
(andbdsk-file-2
etc.) and base64 encoded file path values.This is the code I am using. It has not been successful and I am having a hard time debugging it. I tried to write it so that for every item with an attachment, it should first check if there already exists an entry for
bdsk-file-1
. If not, it should generate a base64 value based on the file path.Support log is
AJM4RPPX-refs-euc
.The text was updated successfully, but these errors were encountered: