This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "BibDesk" | |
activate | |
-- without document, there is no selection, so nothing to do | |
if (count of documents) = 0 then | |
beep | |
display dialog "No documents found." buttons {"•"} default button 1 giving up after 3 | |
end if | |
set thePublications to the selection of document 1 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// UI Scale | |
@base-font-size: 16; | |
@user-font-size: $USER_FONT_SIZE; | |
@ui-scale: @user-font-size / @base-font-size; | |
// UI Colors | |
@tint-color: rgb(173,216,230); | |
@handle-color: black; | |
@collapsed-color: red; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// UI Scale | |
@base-font-size: 16; | |
@user-font-size: $USER_FONT_SIZE; | |
@ui-scale: @user-font-size / @base-font-size; | |
// UI Colors | |
@tint-color: darkblue; | |
@handle-color: white; | |
@collapsed-color: red; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* EXPORT ALL SKIM NOTES TO THE CLIPBOARD WITH MARKDOWN REFERENCE LINKS | |
(no longer) requires hackademic URL handler from github user smargh | |
entirely rewritten to take advantage of Skim's built-in templating | |
2016-06-26 by derickfay | |
*) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# jstorPDFtoBibTeX | |
# requires pdftotext, tag | |
# has about a 85% success rate in my experience | |
header="@article{" | |
footer="}\n\n" | |
biblio="" | |
for filename in "$@" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ "$#" -ne 1 ] | |
then | |
echo "Usage: lstag <tag>" | |
exit 1 | |
fi | |
mdfind "kMDItemUserTags == '*$1*'" -onlyin . | sort --ignore-case | grep $PWD | grep -v ^$PWD/.*/.*$ | sed 's!.*/!!' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set theDate to do shell script "date '+%Y-%m-%d'" | |
set outputPath to "~/Dropbox/mytemp/" | |
set format to "txt" | |
set counter to 1 | |
set theFolder to "Notes" | |
-- uses a counter to avoid duplicate filenames if notes have the same title | |
tell application "Notes" | |
tell folder theFolder | |
set theNotes to every note |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- TextExpander snippet to add recipient's name to email | |
-- based on http://macsparky.com/blog/2015/6/automatically-add-recipients-name-to-email-with-textexapnder [sic] | |
-- updated to handle hyphenated first names properly | |
-- ( Original version would return Young for Young-Hee . This version returns Young-Hee. ) | |
set theResult to "" | |
tell application "System Events" | |
tell process "Mail" | |
tell text field "To:" of window 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Keynote" | |
tell document 1 | |
set theSlides to slides | |
repeat with s in the slides | |
tell presenter notes of s | |
set font to "Helvetica" | |
set size to 24 | |
end tell | |
end repeat | |
end tell |