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" | |
| try | |
| set Evernote_Selection to selection | |
| if Evernote_Selection = {} then | |
| display dialog "Please select the note to Wikify" | |
| end if | |
| set noteName to (title of item 1 of Evernote_Selection) | |
| set notebookName to (name of notebook of item 1 of Evernote_Selection) | |
| end try | |
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" | |
| try | |
| set Evernote_Selection to selection | |
| if Evernote_Selection = {} then | |
| display dialog "Please select the note to Wikify" | |
| end if | |
| set noteName to (title of item 1 of Evernote_Selection) | |
| set notebookName to (name of notebook of item 1 of Evernote_Selection) | |
| end try | |
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" | |
| try | |
| set Evernote_Selection to selection | |
| if Evernote_Selection = {} then | |
| display dialog "Please select the note to Wikify" | |
| end if | |
| set noteName to (title of item 1 of Evernote_Selection) | |
| set notebookName to (name of notebook of item 1 of Evernote_Selection) | |
| end try | |
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" | |
| try | |
| set Evernote_Selection to selection | |
| if Evernote_Selection = {} then | |
| display dialog "Please select the note to Wikify" | |
| end if | |
| set noteName to (title of item 1 of Evernote_Selection) | |
| set notebookName to (name of notebook of item 1 of Evernote_Selection) | |
| end try | |
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" | |
| try | |
| set Evernote_Selection to selection | |
| if Evernote_Selection = {} then | |
| display dialog "Please select the note to Wikify" | |
| end if | |
| set noteName to (title of item 1 of Evernote_Selection) | |
| set notebookName to (name of notebook of item 1 of Evernote_Selection) | |
| end try | |
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
| display dialog "Get Link of selected note or choose other note?" buttons {"Get Selected", "Choose Other"} default button {"Get Selected"} | |
| --Get Markdown formatted info from Selected Note | |
| if result = {button returned:"Get Selected"} then | |
| tell application "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 |
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
| display dialog "Get Link of selected note or choose other note?" buttons {"Get Selected", "Choose Other"} default button {"Get Selected"} | |
| --Get Markdown formatted info from Selected Note | |
| if result = {button returned:"Get Selected"} then | |
| tell application "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 |
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
| (* ACCEPT/REJECT CRITICMARKUP CHANGES | |
| --Stephen Margheim | |
| --23 July 2013 | |
| --open source | |
| --VERSION 2.0 | |
| I rewrote the entire script from the ground up. | |
| Changes: | |
| --Script moves sentence by sentence and alters text each time, so that Contextual views become less and less cluttered. |
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 theText to (the clipboard as text) | |
| set tid to AppleScript's text item delimiters | |
| set AppleScript's text item delimiters to "" | |
| set theCharacters to text items of theText | |
| set AppleScript's text item delimiters to tid | |
| set p to paragraphs of theText | |
| set noteName to {} | |
| repeat with i from 1 to count of p | |
| if p's item i begins with "# " then set noteName's end to p's item i |
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 Notebook Index Note With Hyperlinks to All Notes in that Notebook *) | |
| property LF : ASCII character 10 | |
| tell application "Evernote" | |
| set nbNames to name of every notebook | |
| set nbNames to my simple_sort(nbNames) | |
| set nbName to choose from list nbNames with title "Create Index Note for which Notebook?" | |
| set nbName to nbName as string | |