Skip to content

Instantly share code, notes, and snippets.

@goerz
goerz / gist:5157942
Last active September 14, 2018 06:07
Script that is an adaption of the code found at http://n2.nabble.com/Loss-of-local-file-links-td2209604.html It adds a Local-File field to the BibTeX file with the relative path of the referenced file.
#!/usr/bin/env python
""" Add/update Local-File field to BibDesk-organized BibTeX file """
import sys
import base64
import re
import shutil
from Foundation import *
key_pattern = re.compile(r'^(?P<indent>\s*)Bdsk-File-1 = \{(?P<key>.*)\}[,}]$')
@wildmichael
wildmichael / convertBibDeskLinks.m
Created October 28, 2010 15:07
Converts the Bdsk-File-X base64 encoded aliases created by BibDesk to normal file paths