This file contains 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
-- original by Stephen Margheim | |
-- edited to write the clipboard by Derick Fay, 29 Aug 2013 | |
-- edited to change link format to Cite Key Title | |
--establish a variable for the line feed (aka LF key) | |
set LF to ASCII character 10 | |
--insert the MetaData for export to Evernote | |
set theText to "# BibDesk Sources Index w/ biblio links" & LF & "= !nbox" & LF & "@ BibDesk, Source List" & LF & LF & LF & "**List of Sources in BibDesk Group**" & LF & LF & LF |
This file contains 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 | |
-- Stephen Margheim | |
-- 16 July 2013 | |
-- open source | |
-- adapted to use the clipboard by Derick Fay 29 Aug 2013 | |
This script will (as the title suggests) export all of you Skim notes to the clipboard in Markdown format, with reference style links. It relies on the GENERATE TOP 3 NOTES WITH SYSTEM URL script that will put 3 notes at the top of the PDF with linking information. | |
When launched, the script will ask you if the current PDF is a Primary Source or a Secondary Source. Your choice will determine the text values for the 6 different highlight colors. Of course, you can change any and/or all of the text values to what you wish. |
This file contains 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
-- original by Stephen Margheim | |
-- edited by Derick Fay, 29 Aug 2013 | |
-- copies to clipboard | |
-- uses Cite Key rather than title as link text | |
-- Displays Cite Key as well as Title in selection dialog | |
-- (I use Author-Date cite keys, & tend to think of publications as Author Date references rather than titles…) | |
display dialog "Get Link of selected item or choose other item?" buttons {"Get Selected", "Choose Other"} default button {"Get Selected"} | |
--Get Markdown formatted info for selected item |
This file contains 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 "Skim" | |
set theFile to file of document 1 as string | |
set theHome to path to home folder as string | |
set theFilePath to my replaceText(theHome, "", theFile) | |
end tell | |
on replaceText(find, replace, someText) | |
set prevTIDs to text item delimiters of AppleScript |
This file contains 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
(* COPY CURRENT PAGE OF SKIM PDF TO CLIPBOARD | |
-- created by Stephen Margheim | |
-- 06 July 2013 | |
-- open source | |
edits by Derick Fay 2013-09-05: | |
-- edited to use clipboard | |
-- optimized for Alfred workflow to bypass Reference/Inline dialog box | |
-- 2013-09-11 modified to just add (page) and paste |
This file contains 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 "System Events" | |
click menu item "Merge All Windows" of menu "Window" of menu bar item "Window" of menu bar 1 of application process "Finder" of application "System Events" | |
end tell |
This file contains 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 theFolder to POSIX path of (choose folder with prompt "Choose target folder for new documents:") | |
tell application "BibDesk" | |
set thePubs to selection of document 1 | |
repeat with thePub in thePubs | |
set filename to (theFolder as string) & (cite key of thePub as string) & ".rtf" | |
export document 1 using template "Template" to filename for thePub --insert your template name here | |
end repeat | |
end tell |
This file contains 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
#!/usr/bin/env python | |
import re | |
import sys | |
# first & only argument is the text to be parsed | |
theText = sys.argv[1] | |
theList=[] | |
j="" |
This file contains 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
# tp2fantastical | |
# | |
# by Derick Fay, 2014-04-06 | |
# | |
# an adaptation of the Selection to Fantastical Editorial workflow | |
# (http://editorial-app.appspot.com/workflow/6172238982152192/Y3VYajI3Hzc ) | |
# for use with Drafts and Pythonista (both required) | |
# | |
# works on iPhone and iPad | |
# I have also written an equivalent script for TaskPaper for the Mac |
OlderNewer