Skip to content

Instantly share code, notes, and snippets.

tell application "Google Chrome"
tell front window
set theClip to active tab execute javascript "(function(){clip = window.getSelection();
url = location.href;
var brackets = \"\\[\\[\";
var myDate = new Date();
var year = myDate.getFullYear();
var month = myDate.getMonth();
if(month < = 9)
month = month + 1
--http://www.organognosi.com
-- 2012-09-30
--it matches exact phrases using quotes and single words
--the locked files in DEVONthink are excluded from the search
--the index is created for the active DEVONthink database
tell application "DEVONthink Pro"
set searchWord to text returned of (display dialog "Enter the search word/phrase:" default answer "")
set searchWordList to every word of searchWord
set numberOfSearchWords to count searchWordList
--http://www.organognosi.com
tell application "Skim"
set colorMessage to ""
set pageNotes to notes of current page of document 1
repeat with pageNote in pageNotes
set noteColor to color of pageNote
set noteColorText to ""
repeat with codeColor in noteColor
set noteColorText to noteColorText & codeColor & " "
end repeat
@jsmm
jsmm / 0_reuse_code.js
Created October 23, 2013 21:55
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
--Based in http://www.organognosi.com/export-skim-notes-according-to-their-highlight-colors/
--Modified with http://drosophiliac.com/2012/09/an-academic-notetaking-workflow.html
--Colors and codes changed.
tell application "Skim"
set the clipboard to ""
set numberOfPages to count pages of document 1
activate
set myColorCodes to my chooseColor()
display dialog "Do you want to export all the notes or some of them?" buttons {"All", "Some"} default button 1