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 "Google Chrome" | |
| set LF to (ASCII character 32) & (ASCII character 32) & (ASCII character 10) | |
| copy selection of active tab of window 1 | |
| delay 0.1 | |
| set theTitle to title of active tab of window 1 | |
| set theURL to URL of active tab of window 1 | |
| set FinalText to "[" & theTitle & "](" & theURL & ")" & LF & "\"" & (the clipboard) & "\"" & LF & LF & LF | |
| tell application "TextMate" | |
| insert FinalText |
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 item or choose other item?" buttons {"Get Selected", "Choose Other"} default button {"Get Selected"} | |
| --Get Markdown formatted info for selected item | |
| if result = {button returned:"Get Selected"} then | |
| tell application id "com.devon-technologies.thinkpro2" | |
| set devon_selection to the selection | |
| if devon_selection is {} then display dialog "Please select something." | |
| set Markdown_link to "" | |
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 item or choose other item?" buttons {"Get Selected", "Choose Other"} default button {"Get Selected"} | |
| --Get Markdown formatted info for selected item | |
| if result = {button returned:"Get Selected"} then | |
| tell application "BibDesk" | |
| set bibdesk_selection to selection of first document | |
| if bibdesk_selection is "" then display dialog "Please select an item." | |
| set Markdown_link to "" | |
| repeat with i from 1 to the count of bibdesk_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 open page or choose other page?" buttons {"Get Selected", "Choose Other"} default button {"Get Selected"} | |
| --Get Markdown formatted info for selected item | |
| if result = {button returned:"Get Selected"} then | |
| tell application "VoodooPad" | |
| set voodoo_selection to the (current page name) as string | |
| if voodoo_selection is {} then display dialog "Please select something." | |
| set Markdown_link to "" | |
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
| chooseLinkType({"Evernote", "DEVONthink", "BibDesk", "Voodoopad"}) | |
| on chooseLinkType(LinkList) | |
| set theResult to choose from list LinkList with title "Markdown Link Generator" with prompt "Link type:" OK button name "Select" cancel button name "None" default items {"Evernote"} | |
| if theResult is false then return 0 | |
| set refTypeNumber to theResult as string | |
| (* 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
| (* INSERT MARKDOWN LINKS OF CURRENT PAGE OF SKIM PDF INTO TEXTMATE | |
| -- created by Stephen Margheim | |
| -- 06 July 2013 | |
| -- open source | |
| *) | |
| tell application "Skim" |
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
| (* INSERT MARKDOWN LINKS OF CURRENT PAGE OF SKIM PDF INTO TEXTMATE | |
| -- created by Stephen Margheim | |
| -- 06 July 2013 | |
| -- open source | |
| *) | |
| tell application "Skim" |
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 "BibDesk" | |
| set allDocs to every document of application "BibDesk" | |
| set listofDocs to {} | |
| repeat with theDoc in allDocs | |
| set thename to the name of theDoc | |
| copy thename to the end of listofDocs | |
| end repeat | |
| if (not ((count of listofDocs) is 1)) then | |
| set SelDoc to choose from list of listofDocs with title "Select BibDesk Database" with prompt ¬ |
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 | |