This file contains 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 3 INITIAL SKIM NOTES WITH LINKING INFO (CUSTOM URL VERSION) | |
-- created by Stephen Margheim | |
-- 13 July 2013 | |
-- open source | |
REQUIRED PROGRAMS: | |
-- Skim | |
This script requires setting up the custom URL handler described [here](http://hackademic.postach.io/page/create-a-custom-url-scheme-for-free). |
This file contains 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 A TEXTEDITOR WITH MARKDOWN REFERENCE LINKS | |
-- Stephen Margheim | |
-- 16 July 2013 | |
-- open source | |
This script will (as the title suggests) export all of you Skim notes to a text editor (either TextEdit or TextMate) 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. | |
To change which text editor it exports to, change the "theEditor" property. It can be either "TextMate" or "TextEdit". | |
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 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 LINK TO CHOSEN PDF INTO TEXTEDIT DOC | |
-- Stephen Margheim | |
-- 14 July 2013 | |
-- open source | |
This script assumes you are writing in an open TextEdit document. It will prompt you to choose a PDF file when run. It will then insert the name of the chosen PDF (without the .pdf extension) as a Markdown reference link. That means the linked text is inserted at the cursor point along with a randomly generated 2-digit number and a letter of the alphabet as the link ID. Then, at the end of the document that same link ID and the custom URL are inserted. The cursor is placed one space after the title link. So, for example, you would have something like this: | |
"Some text [title][ID] (then type some more text) | |
This file contains 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 LINK TO CHOSEN EVERNOTE NOTE INTO TEXTEDIT DOC | |
-- Stephen Margheim | |
-- 14 July 2013 | |
-- open source | |
This script assumes you are writing in an open TextEdit document. It will prompt you either (1) to get the note link of whatever note is currently selected in your Evernote app or (2) to choose a specific note and insert its link. Whichever you choose, the script will insert the note title at the cursor point along with a randomly generated 2-digit number and a letter of the alphabet as the link ID. Then, at the end of the document that same link ID and the Evernote URL are inserted. The cursor is placed one space after the title link. So, for example, you would have something like this: | |
"Some text [title][ID] (then type some more text) | |
This file contains 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 INLINE LINK TO CHOSEN EVERNOTE NOTE INTO TEXT DOC | |
-- Stephen Margheim | |
-- 14 July 2013 | |
-- open source | |
This script will prompt you either (1) to get the note link of whatever note is currently selected in your Evernote app or (2) to choose a specific note and insert its link. Whichever you choose, the script will insert the note link at the cursor point. | |
*) |
This file contains 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 1.1 | |
--added if, then, else blocks for all prompts, allowing for script to function even if not all markup forms are present | |
--added try block to getContext Handler, allowing script to function when context range exceeds beginning or end of doc |
This file contains 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 NEW NOTE IN TEXTMATE (FOR EXPORT TO EVERNOTE) | |
-- created by Stephen Margheim | |
-- 07 July 2013 | |
-- open source | |
REQUIRED PROGRAMS: | |
-- TextMate (I have alternate code for TextEdit as well) | |
This script prompts you for a Note title and generates a note with that title and opens it in TextMate. This note will reside in a folder on your Desktop called "Pre-Evernote". If you do not have such a folder, the script creates it. Since I create the new note via the Terminal, which requires single word titles, there is a precaution to replace spaces with underscores. |
This file contains 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 NEW NOTE IN TEXTMATE (FOR EXPORT TO EVERNOTE) | |
-- created by Stephen Margheim | |
-- 07 July 2013 | |
-- open source | |
REQUIRED PROGRAMS: | |
-- TextMate (I have alternate code for TextEdit as well) | |
This script prompts you for a Note title and generates a note with that title and opens it in TextMate2. This note will reside in a folder on your Desktop called "Pre-Evernote". If you do not have such a folder, the script creates it. Since I create the new note via the Terminal, which requires single word titles, there is a precaution to replace spaces with underscores. |
This file contains 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 webpage links beginning with:" & return & return & "customurl://com.hackademic.AppleScript.URL_Handler?action=1$Path/to/PDF.pdf#" & 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 ARGUMENTS | |
set X to the offset of "?" in this_URL |
This file contains 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 "TextMate" | |
--establish a variable for the line feed (aka LF key) | |
set LF to ASCII character 10 | |
--insert the MetaData for export to Evernote | |
insert "# BibDesk Sources Index w/ biblio links" & LF & "= !nbox" & LF & "@ BibDesk, Source List" & LF & LF & LF & "**List of Sources in BibDesk Group**" & LF & LF & LF | |
--get relevant information from selected items in DEVON | |
tell application "BibDesk" |
OlderNewer