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
#!/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 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
-- creates notes on every page in the lower L and lower R for those occasions where the scanner cut off the page numbers | |
set firstPage to (text returned of (display dialog "Enter Starting Page" default answer "")) as number | |
set currentPage to firstPage | |
tell application "Skim" | |
set pp to pages of document 1 | |
repeat with p in items of pp | |
tell p |
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 themeName to "Black" | |
tell application "Keynote" | |
set theSlides to slides of document 1 | |
set theImages to {} | |
repeat with s in theSlides | |
set theImages to theImages & (images of s) | |
end repeat | |
set theDimensions to {} | |
repeat with i in theImages |
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
-- 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 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 | |
-- 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 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 "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 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
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 |
OlderNewer