Skip to content

Instantly share code, notes, and snippets.

View derickfay's full-sized avatar

Derick Fay derickfay

View GitHub Profile
@derickfay
derickfay / exportMarkdown.md
Created July 12, 2019 05:36
BibDesk Markdown export template

<$publications> <$pubType=book?> <$pubAuthors.abbreviatedNormalizedName.stringByRemovingTeX.@componentsJoinedByCommaAndAnd/> <$pubFields.Year/>. <$pubFields.Title/>. <$pubFields.Address/>: <$pubFields.Publisher/>.

<$pubAuthors.abbreviatedNormalizedName.stringByRemovingTeX.@componentsJoinedByCommaAndAnd/> <$pubFields.Year/>. <$pubFields.Title/>. In <$pubFields.Booktitle/>. <$pubEditors.abbreviatedNormalizedName.stringByRemovingTeX.@componentsJoinedByCommaAndAnd/>, eds. <$pubFields.Pages?>Pp. <$pubFields.Pages/></$pubFields.Pages?>. <$pubFields.Address/>: <$pubFields.Publisher/>.

$pubType=article?>

tell application "DEVONthink 3"
set theBases to databases
set theList to {}
set myitems12345 to {}
repeat with b in theBases
tell b
set theRecs to (every record whose type is group) & (every record whose type is smart group)
repeat with r in theRecs
set title to {title:name of r}
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# codercase.py
#
# 2014-08-28 by Derick Fay
#
# based almost entirely on jdc0589's CaseConversion plug-in for SublimeText:
# https://github.com/jdc0589/CaseConversion/blob/master/case_conversion.py
#