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 markdownloc : "/usr/local/bin/multimarkdown" | |
| set mdSource to the clipboard | |
| set rawHTML to do shell script "echo " & the quoted form of mdSource & " | " & markdownloc |
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 markdownloc : "/usr/local/bin/multimarkdown" | |
| property tid : AppleScript's text item delimiters | |
| set mdSource to the clipboard | |
| --check for Title metadata | |
| try | |
| if text item 1 of paragraph 1 of mdSource = "#" then | |
| if not text item 2 of paragraph 1 of mdSource = "#" then | |
| set theTitle to text items 3 thru -1 of paragraph 1 of mdSource as string |
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
| (* EVERNOTE TO MARKDOWN | |
| --Stephen Margheim | |
| --11/9/13 | |
| --open source | |
| REQUIREMENTS | |
| --Satimage osax plugin | |
| --Aaron Swartz's html2text python script | |
| --Evernote |
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 markdownloc : "/usr/local/bin/multimarkdown" | |
| property tid : AppleScript's text item delimiters | |
| set mdSource to the clipboard | |
| if is_running("Evernote") = false then | |
| tell application id "com.evernote.Evernote" to launch | |
| tell application "System Events" | |
| set visible of process "Evernote" to false |
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
| (* PARSE EVERNOTE CACHE FILE | |
| --Stephen Margheim | |
| --11/13/13 | |
| --open source | |
| REQUIREMENTS: | |
| - JSON Helper (http://www.mousedown.net/mouseware/JSONHelper.html) | |
| - Satimage osax Applescript plugin (https://www.macupdate.com/app/mac/16798/satimage-osax) | |
| - an Evernote data cache, properly formatted, created by [this script](https://gist.github.com/smargh/7462510). |
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
| (* CREATE JSON EVERNOTE CACHE | |
| --Stephen Margheim | |
| --11/14/13 | |
| --open source | |
| Creates cache of Evernote note data in JSON format. | |
| Once created, this .txt cache can be read and searched much more quickly than pinging the Evernote app with each script you write. |
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
| (* CONVERT BIBTEX TO JSON | |
| --Stephen Margheim | |
| --11/16/13 | |
| --open source | |
| REQUIREMENTS: | |
| --Satimage osax Applescript plugin | |
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
| (* GENERATE MMD CITEKEY FROM BIBDESK SEARCH | |
| --Stephen Margheim | |
| --11/17/13 | |
| --open source | |
| REQUIREMENTS: | |
| - BibDesk | |
| This script allows you to search your BibDesk database and insert either a short MultiMarkdown cite key or a long MMD cite key. |
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
| (* PARSE BIBJSON TEXT FILE | |
| --Stephen Margheim | |
| --11/18/13 | |
| --open source | |
| REQUIREMENTS: | |
| -JSON Helper | |
| This script reads the JSON text file that houses your bibliographic data. It allows you to search and insert MultiMarkdown cite keys into your document. |
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
| (* CREATE AND AUTOLINK TO NEW NOTE FROM SELECTION | |
| --Stephen Margheim | |
| --11/26/13 | |
| --open source | |
| This script takes text selected from within an Evernote note and (1) creates a new note whose titles matches the selected text in the same notebook, (2) embeds a link to the original note as the first line of the new note, and (3) replaces the selected text with a link to the newly created note. | |
| This allows you to easily create a wiki-like environment within your Evernote account. | |
| *) |