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
| import subprocess | |
| def getClipboardData(): | |
| p = subprocess.Popen(['pbpaste'], stdout=subprocess.PIPE) | |
| retcode = p.wait() | |
| data = p.stdout.read() | |
| return data | |
| def setClipboardData(data): | |
| p = subprocess.Popen(['pbcopy'], stdin=subprocess.PIPE) | |
| p.stdin.write(data) |
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
| --27.5 minutes to upload to Evernote the entire Latin Core Vocab list (997 terms) | |
| --7.5 minutes to upload to Evernote the entire Greek Core Vocab list (515 terms) | |
| property tid : AppleScript's text item delimiters | |
| property alphaList : "abcdefghijklmnopqrstuvwxyz"'s items & reverse of "ABCDEFGHIJKLMNOPQRSTUVWXYZ"'s items | |
| --get xml file from clipboard and clean up | |
| set t to my RemoveListFromString(the clipboard, {"<?xml version=\"1.0\" encoding=\"UTF-8\" ?>", "<nodes>", "</nodes>"}) |
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 EVERNOTE WITH DEVONTHINK HYPERLINKS | |
| -- Stephen Margheim | |
| -- 10/18/13 | |
| -- open source | |
| REQUIRED PROGRAMS: | |
| - Skim (pdf viewer and annotator) | |
| - Evernote (cloud based note app) | |
| - DEVONthink (database program) |
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
| on run | |
| display dialog "This script applet will respond to hyperlinks beginning with:" & return & return & "pdfpen:///pdf_title.pdf?pg=2" & return & return & "It will open your custom URLs in Skim" buttons {"OK"} default button 1 with title "Custom URL Helper" with icon 1 | |
| tell application "Finder" to update (path to me) | |
| end run | |
| on open location this_URL | |
| -- Extract Title and Page Number | |
| set x to offset of "?" in this_URL | |
| set y to offset of "=" in this_URL | |
| set z to offset of ":" in this_URL |
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 EVERNOTE WITH IOS HYPERLINKS | |
| -- Stephen Margheim | |
| -- 10/16/13 | |
| -- open source | |
| REQUIRED PROGRAMS: | |
| - Skim (pdf viewer and annotator) | |
| - Evernote (cloud based note app) | |
| - works with PDFPen for iPad and iPhone |
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
| property tid : AppleScript's text item delimiters | |
| property LF : (ASCII character 32) & (ASCII character 32) & (ASCII character 10) | |
| tell application id "com.evernote.evernote" | |
| set Evernote_Selection to selection | |
| if Evernote_Selection is {} then display dialog "Please select a note." | |
| set noteLink to "" | |
| repeat with i from 1 to the count of Evernote_Selection | |
| set noteName to title of item i of Evernote_Selection |
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
| (* CHECK MODIFIER KEYS | |
| REQUIREMENTS: | |
| - the checkModifierKeys utility, which needs to be in your Utilities folder. To download, visit here: http://macscripter.net/viewtopic.php?pid=114479#p114479 | |
| *) | |
| set buttonOptions to {"cmd", "option", "control", "shift", "capslock"} | |
| set p2u to POSIX path of (path to utilities folder) |
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 "Evernote" | |
| set x to selection | |
| repeat with i from 1 to count of x | |
| set theurl to note link of item i of x | |
| end repeat | |
| end tell |
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
| (* SPLIT TWO-PAGE PDFS | |
| --Stephen Margheim | |
| -- 11/2/13 | |
| -- open source | |
| VERSION 3.0 | |
| --Version 3 adds a feature for OCR'd PDFs. If your PDF has been OCR'd, the script now automatically crops the individual pages so that the text field is centered. | |
| This little program uses the Mac app Skim to split scanned PDFs that have two pages layed out on a single PDF page in landscape mode: |
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
| (* CRITIC MARKUP REVIEW | |
| --Stephen Margheim | |
| --11/3/13 | |
| --open source | |
| DEPENDENCIES: | |
| - the Satimage Applescript addition | |
| This script allows you to accept or reject, keep or alter the 5 forms of CriticMarkup syntax: Additions, Deletions, Substitutions, Hightlights, and Comments. It depends upon the free and powerful Satimage Applescript addition pack, which you can download [here](https://www.macupdate.com/app/iphone/16798/satimage-osax). |